public virtual ZuoraResponse Crud <T>(CrudOperation <T> operation) where T : ZObject { if (operation.Items.Count() > 50) { throw new ZuoraRequestException( "The SOAP api only allows the modification of up to 50 records. " + "Please use the Bulk api methods for any operation that requires " + "higher limits."); } return(PerformSimpleRequest(SoapRequestManager.GetCrudRequest(operation, Login()))); }
public virtual SalesforceResponse Crud <T>(CrudOperation <T> operation) where T : SObject { if (operation.Items.Count() > 200) { throw new SalesforceRequestException("The SOAP api only allows the modification of up tp 200 records. " + "Please use the Bulk api methods for any operation that requires " + "higher limits."); } if (operation.OperationType == CrudOperations.Upsert && string.IsNullOrEmpty(operation.ExternalIdField)) { throw new SalesforceRequestException("Upsert requests required an external ID name field to be specified."); } return(PerformSimpleRequest(SoapRequestManager.GetCrudRequest(operation, Login()))); }