1

URI i'm using is: https://yourInstance.salesforce.com/services/async/46.0/job so in my case example is https://cs89.salesforce.com/services/async/46.0/job but it still says InvalidUrl.

X-Session-Id i put there the Access token

X-Session-Id i put there the Access token

enter image description here

enter image description here

enter image description here

2
  • what is payload of request message?
    – kurunve
    Jul 1, 2019 at 6:46
  • { "jobInfo" : { "operation" : "query", "object" : "Account", "contentType" : "JSON", "concurrencyMode" : "Parallel" } } Jul 1, 2019 at 7:00

1 Answer 1

1

This has to do with your payload - getting details of a job (what you're attempting with operation query) should go against /async/<api_version>/job/jobId. It should have an empty request body. The /job resource is for creating jobs (operation: insert)

2
  • can you elaborate on your answer, I tired what was said and I still get an answer? url: test.salesforce.com/services/async/48.0/job headers Content-Type: application/json X-SFDC-Session: <fresh token> { "jobInfo": { "operation": "insert", "object": "Account", "contentType": "JSON", "concurrencyMode": "Parallel" } } I still get the error: { "exceptionCode": "InvalidJob", "exceptionMessage": "Unable to parse Job" } Jul 24, 2020 at 1:41
  • 1
    @user1019042 Please ask by clicking the Ask Question button.
    – identigral
    Jul 24, 2020 at 3:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .