Skip to main content The Trailblazer Community will be unavailable from 2/1/2025 to 2/2/2025. Please plan your activities accordingly.
Getting 

exceptionCode: InvalidSessionId

exceptionMessage: Unable to find session id.

My steps are:

1. /services/async/37.0/job

2.Request Headers -> Content-Type: application/json; charset=UTF-8

Accept: application/json

X-SFDC-Session:

Session Id from the previous unit SOAP API login() call

Also tryed to use the id from UserInfo.getSessionId()

3.Request Body

  {

  "operation" : "insert",

  "object" : "Account",

  "contentType" : "JSON"

}

 
1 answer
  1. Dec 13, 2016, 10:53 PM
    The problem was that I was passing the Id on the new line

    X-SFDC-Session:

    XXXXX

     
0/9000