forcedotcom / postman-salesforce-apis

Salesforce API Postman Collection
Creative Commons Zero v1.0 Universal
1.06k stars 638 forks source link

Metadata -> SOAP List Metadata INVALID_SESSION_ID #56

Closed ram4ufriends closed 3 years ago

ram4ufriends commented 3 years ago

I have configured Postman and am able to execute most of the calls. But for Metadata -> SOAM List Metadata I am getting the below error. Does anything specific need to be done for SOAP calls?

sf:INVALID_SESSION_ID INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session
pozil commented 3 years ago

Hi @ram4ufriends these are SOAP requests (as indicated in their name). This means that you need a SOAP session to use them. The default authentication for the collection is OAuth 2.0 and that's not compatible with SOAP. If you want to call SOAP APIs, you need to authenticate with Auth > SOAP Login. This requires that you set these collection variables beforehand: username, password and secretToken.