0 votes
1 view
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 (30.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.

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


Categories

...