Friday, August 21, 2020

Salesforce adapter in OIC for Outbound Messages

Today we will look at a simple example of triggering OIC integration based on some business event within Salesforce application.

In our example, we will configure the integration to capture the event of "Order" creation from Salesforce.


Create Connection:



 In the latest version, we don't need to provide the Salesforce URL. SFDC adapter will figure out the environment based on API version, Username and Instance Type.


Configure Outbound Message:

Before Creating the integration, we first need to configure the Outbound Messages in SFDC which will generate a WSDL.

Login to Salesforce.
Click on Service Setup.


Search for Outbound Messages


Click New Outbound Message.


Select the Object as Order.

Select the Fields you want to capture on the event. Keep it minimal, since we can query the remaining information later.

Enter a dummy URL in Endpoint. This will be later changed to URL of OIC integration.


Click on WSDL and save it. Make sure to remove extra lines in the WSDL document.

Create Integration:


 Select SFDC connection as the trigger point.


Select the WSDL you saved earlier.


Disable "Send a response".



Configure tracking and activate the Integration.

Configure WorkFlow Rules:

Edit Outbound Message and update the Integration URL there and save it.


Search for Workflow Rules.


Click New Rule.


Select Order.


 You can choose when the event should be triggered on below page.


Select Existing action to assign the outbound message we created earlier.

 Save it and Don't forget to Activate the Workflow Rule.


Once activated, For every order created/updated our integration will be triggered.



Later we can update our Integration to query SFDC based the fields we received in the business event.

No comments:

Post a Comment