• lattice
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies

Hi all,

I'm new here.

I'm coding a C# project to update data in Salesforce. When making a request of type HttpWebRequest, I get a sample to set session ID with code  "request.Headers.Add("X-SFDC-Session", sessionID);"

I've no idea why it is "X-SFDC-Session" or where can I find the mapping of header names and key words.

Now I want to set AllOrNoneHeader to be "true". Which key word should I use in HttpWebRequest instance?

 

Any suggestions?

Thank you very much!

Hi,

I'm new.

After Adding a Batch to a Job, I want to remove the Batch from the Job.

this is my code for adding a Batch to a Job:

            string uri = "https://" + host + "/services/async/" + bulkAPIVersion + "/job/" + jobID + "/batch";
            HttpWebRequest request = HttpWebRequest.Create(uri) as HttpWebRequest;
            request.Method = "POST";
            request.Headers.Add("X-SFDC-Session", sessionID);
            request.ContentType = "text/csv;charset=UTF-8";
            request.Accept = "text/xml";
            SetBody(request, csvData);

            WebResponse response = request.GetResponse();

I've got the Job id and the Batch id. Is there any way to remove the Batch from the Job?

 

Begging for your help.

Thanks a lot.

Hi,

I'm new.

After Adding a Batch to a Job, I want to remove the Batch from the Job.

this is my code for adding a Batch to a Job:

            string uri = "https://" + host + "/services/async/" + bulkAPIVersion + "/job/" + jobID + "/batch";
            HttpWebRequest request = HttpWebRequest.Create(uri) as HttpWebRequest;
            request.Method = "POST";
            request.Headers.Add("X-SFDC-Session", sessionID);
            request.ContentType = "text/csv;charset=UTF-8";
            request.Accept = "text/xml";
            SetBody(request, csvData);

            WebResponse response = request.GetResponse();

I've got the Job id and the Batch id. Is there any way to remove the Batch from the Job?

 

Begging for your help.

Thanks a lot.