Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in Salesforce by (11.9k points)
edited by
I'm logging my users in using SOAP in my app. But then I want to use Analytics API, which is REST. But I don't want them to enter their credentials all over again.
Is there a way that I can use my already obtained SOAP sessionId as the token for REST API? When I tried to do that, I got an authentication error back from the REST call. Did I miss something or is it just not possible?

1 Answer

0 votes
by (32.1k points)
edited by

Yes, you can use the SOAP session ID in the same way you would use an access token you would have gotten via OAuth, by adding a Authorization: Bearer {sessionId} HTTP header to REST API requests.

Go for this in-depth job-oriented Salesforce admin certification now!

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...