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
JonSimmonsJonSimmons 

Outbound Message SessionId

 

The Outbound Message contains a SessionId and a ServerURL, Is it possible  to use this SessionId and ServerURL to access Salesforce and avoid login/authentication?

 

Thanks

Jon

 

Best Answer chosen by Admin (Salesforce Developers) 
SuperfellSuperfell
Yes, its included so that the OM listener can make API calls back to salesforce without need to store credentials, call login etc.

All Answers

SuperfellSuperfell
Yes, its included so that the OM listener can make API calls back to salesforce without need to store credentials, call login etc.
This was selected as the best answer
JonSimmonsJonSimmons
As I suspected.  Thanks!
MG ConsultingMG Consulting

How long is this sessionId guaranteed to be good for? Let's say I had to do some work as a result of the outbound message that would take some time, how do I know the sessionId will not have timed out when I'm ready to communicate the results back to SFDC?

SuperfellSuperfell

Its uses the org's session expiration timeout settings.

MG ConsultingMG Consulting

Ok, great, that makes sense, thanks Simon. So if that is set to 2 hours, I have about 2 hours before timeout, assuming I receive the outbound message in a timely manner. It doesn't matter if the user that triggered the outbound message signs out before then?

SuperfellSuperfell

Correct.