Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 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!

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.1k users

Browse Categories

...