public Job CreateJob(CreateJobRequest createJobRequest)
        {
            String jobRequestXML =
            @"<?xml version=""1.0"" encoding=""UTF-8""?>
             <jobInfo xmlns=""http://www.force.com/2009/06/asyncapi/dataload"">
               <operation>{0}</operation>
               <object>{1}</object>
               {3}
               <contentType>{2}</contentType>
             </jobInfo>";

            String externalField = String.Empty;

            if (String.IsNullOrWhiteSpace(createJobRequest.ExternalIdFieldName) == false)
            {
                externalField = "<externalIdFieldName>" + createJobRequest.ExternalIdFieldName + "</externalIdFieldName>";
            }

            jobRequestXML = String.Format(jobRequestXML,
                                          createJobRequest.OperationString,
                                          createJobRequest.Object,
                                          createJobRequest.ContentTypeString,
                                          externalField);

            String createJobUrl = "https://" + _sfService.Pod + "-api.salesforce.com/services/async/31.0/job";

            String resultXML = invokeRestAPI(createJobUrl, jobRequestXML);

            return Job.Create(resultXML);
        }
        private CreateJobRequest buildDefaultAccountCreateJobRequest(JobOperation operation)
        {
            CreateJobRequest jobRequest = new CreateJobRequest();
            jobRequest.ContentType = JobContentType.CSV;
            jobRequest.Operation = operation;
            jobRequest.Object = "Account";

            return jobRequest;
        }