Build an Integration Procedure to Retrieve Updated Data
Create an Integration Procedure to Get External Country Details
In the previous units, you created an Integration Procedure to fetch and process order data and country data from an external site. You configured the same Integration Procedure to update the order data as well.
Now you build a second Integration Procedure named Fetch External Country Details to get the updated country data. In the next badge, you build an Omniscript and feed the data to it.
Let’s create the Integration Procedure.
- Click
, then find and select Integration Procedures.
- Click New.
- On the New Integration Procedure window, enter these details.
- Integration Procedure Name:
Fetch External Country Details
- Type:
Order
- Sub Type:
GetCountryDetails
- Integration Procedure Name:
- Click Save.
The Integration Procedure opens in the Integration Procedure Designer in a new tab. Do you recall how you configured the fetch workflow in the Integration Procedure in unit 1? You do the same for this one.
Add Data Mapper Extract Action
Add an extract action element to fetch the updated shipping country name.
- In the Integration Procedure designer, click
, then find and select Data Mapper Extract. A data mapper extract action element is added to the canvas.
- Enter these details in the DataMapperExtract panel.
- Element Name:
DMGetNewShippingCountry
- Data Mapper Name: DMExtractShippingCountry
- Element Name:
- Click
to close the panel.
- Save your work.
With the Data Mapper Extract Action in place, let's move on to the next element.
Add HTTP Action
You add an HTTP action element to fetch the country details from the external website using the updated country name.
- In the Integration Procedure designer, click
after the Data Mapper Extract Action, then find and select HTTP. An HTTP Action element is added to the canvas.
- Enter these details in the HTTP Action panel.
- Element Name:
HTTPGetUpdatedExternalCountryDetails
- Request URL:
https://th-hoc-earthnations-e1403d711d73.herokuapp.com/name/%DMGetNewShippingCountry:OrderShippingCountry%
OrderShippingCountry is the ShippingCountryNoSpace custom field data coming from the DMGetNewShippingCountry data mapper action.
- HTTP Method:
GET
- Element Name:
- Click
to close the panel.
- Save your work.
Now that you’ve the data from the external website, let’s transform it.
Add Data Mapper Transform Action
Add and configure a data mapper transform action element to restructure and format the country data.
- In the Integration Procedure designer, click
after the HTTP Action element, then find and select Data Mapper Transform.
- Enter these details in the DataMapperTransform panel.
- Element Name:
DMTProcessUpdatedCountryDetails
- Data Mapper Name: DMTransformUpdatedCountryData
- Element Name:
- Under the ‘Additional Input, Additional Output, and Failure Response’ section, for Additional Input, click + Add Key Value Pair.
- Enter these details.
- Key:
Input
- Value:
%HTTPGetUpdatedExternalCountryDetails%
- Key:
- Click
to close the panel.
- Save your work.
We’re almost done—just one more action.
Add Response Action
Finally, you add and configure a response action element that provides the updated country data to an Omniscript.
- In the Integration Procedure designer, click
after the Data Mapper Transform Action element, then find and select Response.
- In the Response panel, for Element Name, enter
ResponseCountryData.
- Under the Send and Response Transformations section, for Send JSON Path, enter
DMTProcessUpdatedCountryDetails.
- Under the Additional Output Response section, for Additional Output, click + Add Key Value Pair and enter these details.
- Key:
message
- Value:
Shipping address successfully updated
- Key:
- Click
to close the panel.
- Save your work.
- Click Activate.
After you activate the Integration Procedure, it’s available for you to use in any Flexcard or Omniscript.
This is how the Fetch External Country Details Integration Procedure structure appears after you complete the configuration.

Are you wondering why you’re creating a separate Integration Procedure just to fetch the external country details? Why can’t you do all the processes in a single Integration Procedure? There’s a reason: Salesforce includes a guardrail where you can’t perform an update record action and make an external call in the same transaction. If you do that, you’ll get an error.
Wrap Up
In this badge, you learned how to build and configure Integration Procedures to fetch and update data. You created the Process Customer Integration procedure to fetch and transform order and external country data. You also configured it to update the shipping details of an order. And you created the Fetch External Country Details Integration Procedure to fetch and transform the new country details from the external source.
Next, complete the Order Data Modification with Omnistudio Omniscripts badge: Learn how to create an Omniscript to update the order shipping details.