You need to sign in to do that
Don't have an account?
Maneesh Gupta 11
Reading outbound messages
Hello,
I have an integration requirement where an external SFDC application to going to send me outbound messages which I need to read and process in my SFDC application.
I am wondering how can I read the outbound messages? Can I write Apex webservice? Will that work?
I have an integration requirement where an external SFDC application to going to send me outbound messages which I need to read and process in my SFDC application.
I am wondering how can I read the outbound messages? Can I write Apex webservice? Will that work?
https://developer.salesforce.com/page/Creating_REST_APIs_using_Apex_REST
I haven't done it, but I think it can be done. I would start be looking at Apex SOAP services:
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_web_services.htm
Then I would look at generating the Apex method from the WSDL that would be available from the outbound message
https://help.salesforce.com/HTViewHelpDoc?id=code_wsdl_to_package.htm&language=en_US (https://help.salesforce.com/HTViewHelpDoc?id=code_wsdl_to_package.htm&language=en_US)
Good luck,
John
Thanks for your response! Once we create REST/SOAP services/end points, how would I make sure that as soon as an outbound message is posted at that end point, the web service is invoked and the Apex method is executed?
This is a real time requirement. So I want to execute the Apex method (web service) as soon as the outbound message is received. How can I do this?
I would suggest reviewing Understanding Notifications (https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_om_outboundmessaging_notifications.htm) in the Developers Guide.
John
I have another related question here. Once the source SFDC org posts an outbound message to an end point, how can I parse that message? I have to consume that message and store the information in my Org.
Can I write an Apex class to parse and process that outbound message?
Good luck,
John