function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Khalid SialKhalid Sial 

[{"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"}]

Hi All,

I am accessing the SalesForce composite resources through HttpClient and RestClient but I am getting the error [{"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"}], I already rest the password and regenerated the Security token and passing correctly ClientId, Client Secret, user name and password+security token but getting session expired error.

I am able to get the access token but when supplying that access token to update an object at the sales force than getting the session expired error.

But when I am trying to make a call through postman then everything is working fine.

Thanks.
Syed Insha Jawaid 2Syed Insha Jawaid 2
Hi Khalid

Please try and store the generated session Id and latter use the same through postman; this will help us isolate the problem. Also it would be helpful if you could attach screenshots.
Khalid SialKhalid Sial
Hi Syed Insha Jawaid,

I am attaching the screenshot kindly take a look
User-added image
I have already reset the password and security token and passed password as a password+security token but still facing the same problem.

Thanks
Khalid SialKhalid Sial
Hi Syed Insha Jawaid,

I am still waiting for your response,

Thanks