Wednesday, April 13, 2016

Developer: How to validate and test Outbound Messages when integrating between systems?

If you are using the Workflow Outbound Message feature to integrate data with other systems then there is a need to validate data going from Salesforce. Basically, you need a staging area where you can route these XML messages and validate the data being sent.

Solution

Enter the url https://requestb.in/ in your browser and click on 'Create a request bin'.
A new bin URL will be created which you can use to route messages to before you test with the destination system.

Take this newly generated URL and use this as the destination endpoint URL for your XML message.

Execute a transaction that will cause the outbound XML message to be sent.
Load the request bin URL in your browser and you should see your message there.

Salesforce will keep sending these messages to the request bin as it does not receive an ACK message from the bin. Simply, navigate to the Monitor--Outbound Messages and delete the message so that salesforce stops posting messages over and over again to the RequestBin.

No comments:

Post a Comment