1

How can I use Bulk API 1.0 (for query) with Salesforce Workbench (or Postman) ?

I found that doc explaining Bulk API 1.0 but only with cURL, and I'd like to use Workbench or Postman if possible, but when I use the xml as the body, I got an error.

2

The Bulk API requires a special header, X-SFDC-Session, that the other REST API calls don't use (the majority of them use Authorization). As such, to get started, you will need to use the following settings in Workbench:

Example

Method: POST

URL: /services/async/44.0/job

Request Headers:

Content-Type: application/xml; charset=UTF-8
Accept: application/xml
X-SFDC-Session: 00D..........
  • Thanks, where can I find the X-SFDC-Session ? – dou Oct 16 '18 at 15:33
  • 1
    @dou You get it by running an executeAnonymous script, such as: system.assert(false, userinfo.getsessionid());, or you can grab a different token, such as by calling a login method or something else. I don't see a way to get it directly in the Workbench. – sfdcfox Oct 16 '18 at 15:42

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.