public Batch CreateBatch(CreateBatchRequest createBatchRequest) { String requestUrl = "https://" + _sfService.Pod + ".salesforce.com/services/async/31.0/job/" + createBatchRequest.JobId + "/batch"; String requestXML = createBatchRequest.BatchContents; String contentType = String.Empty; if (createBatchRequest.BatchContentType.HasValue) { contentType = createBatchRequest.BatchContentHeader; } String resultXML = invokeRestAPI(requestUrl, requestXML, "Post", contentType); return(Batch.CreateBatch(resultXML)); }
public Batch CreateBatch(CreateBatchRequest createBatchRequest) { String requestUrl = "https://" + _sfService.Pod + "-api.salesforce.com/services/async/31.0/job/" + createBatchRequest.JobId + "/batch"; String requestXML = createBatchRequest.BatchContents; String contentType = String.Empty; if (createBatchRequest.BatchContentType.HasValue) { contentType = createBatchRequest.BatchContentHeader; } String resultXML = invokeRestAPI(requestUrl, requestXML, "Post", contentType); return Batch.CreateBatch(resultXML); }