+ Start a Discussion
Haystack CertifiedHaystack Certified 

Using Outbound Message Session ID with REST API

Can the Session ID that is passed with Workflow Outbound Messaging be used with REST?  Any challenges associated with this?  Thanks.
Best Answer chosen by Haystack Certified
Ashish_SFDCAshish_SFDC
Hi , 


Since the SessionID, which allows for a call-back into Salesforce without needing to authenticate first, can be sent with the SOAP message, then the outbound
message can be used to simply kick-off the required action.

WORKFLOWS AND THE OUTBOUND MESSAGE OPTION IN SALESFORCE

http://www.sundoginteractive.com/sunblog/posts/workflows-and-the-outbound-message-option-in-salesforce


Also see the below links with more information and discussion on this topic, 


service.SessionHeaderValue.sessionId = loginResult.sessionId;

http://www.nimbleuser.com/blog/posts/2012/catch-me-on-the-flip-side-responding-to-outbound-messages-in-salesforce-crm/


Salesforce: Calling Apex From Workflows

http://www.embracingthecloud.com/2013/01/01/SalesforceCallingApexFromWorkflows.aspx


Regards,
Ashish