Outbound message is used to send a message to external web services or an application when the record is created or updated in the Salesforce. Outbound messages can be triggered by using Workflow, Approval process, and Entitlement process.
Outbound message using PutsReq:
Here, I have taken the example scenarios for outbound messages from the workflow and took an external web services as PutsReq.
PutsReq allows to create a ‘Service Request’ and displays the request headers and body, and send Salesforce a successful acknowledgment.
Methods used in PutsReq:
- Update: While clicking ‘Update’ button, the response builder gets updated and its ready for the requests.
- Fork: While clicking ‘Fork’ button, the new URL gets a copy from the existing URL
- Clear History: While clicking ‘Clear History’ button, the selected URL history gets cleared.
Before Clearing the history,
After clearing the history,
- Destroy: While clicking ‘Destroy’ button, it will remove the entire URL and that URL no longer exists.
Configuration of Outbound messages in Salesforce using PutsReq:
Let’s see the steps in detail of configuring the outbound messages using PutsReq.
1.Use the URL as http://putsreq.com
2.Select ‘Create a PutsReq’.
3.Set up a SOAP Response.
In the response builder, SOAP response is added for a successful acknowledgement.
Usage of Response Builder:
Response builder is used to get the successful acknowledgement. This will be the response back to the Salesforce that the message was received successfully and no need to retry the message from Salesforce.
5.PutReq URL should be specified in the Endpoint URL in the outbound message.
Outbound message URL:
Procedure to setup the workflow:
Setup the workflow rule to create an outbound message.
Path for creating workflow: Setup->Create->Workflow and Approvals->Workflow rules.
Set up the criteria in workflow and add an action as ‘Outbound messages’.
Navigation Path for creating outbound message: Add Workflow Action->New Outbound Message.
Specify the endpoint URL in outbound messages and select the field values that are to be included in the outbound message and save it.
Make the workflow as Active.
Triggering the workflow:
Create a Lead that meets the criteria and enter the fields which should be included in the oubound messages.