You are here:
Create a Basic List Merge Example
In this example, the first Integration Procedure retrieves all Contacts with the same AccountId in two lists, one containing addresses, the other birthdates. It then merges the two lists into one.
If you're using the designer on a managed package, you can download a data pack of this example from here.
The Integration Procedure has these components:
- An Omnistudio Data Mapper Extract Action component named DRExtractAddresses
- A Data Mapper Extract Action component named DRExtractBirthdates
- A List Action named ListAction1
- A Response Action named ResponseAction1
-
Create the Data Mapper Extract that the DRExtractAddresses component calls. Name it
GetAddresses and configure it with these settings:
Extract A Contact extract step set to contact AccountId = id Output These mappings: - contact:Id to contact:id
- contact:FirstName to contact:firstName
- contact:LastName to contact:lastName
- contact:MailingStreet to contact:street
- contact:MailingCity to contact:city
- contact:MailingState to contact:state
If you aren't sure how to create a Data Mapper Extract, see the examples in Omnistudio Data Mapper Extract Examples. -
Create the Data Mapper Extract that the DRExtractBirthdates component calls:
- Clone the GetAddresses Data Mapper and name the clone GetBirthdates.
- Go to the Create Mapping page, and delete the city, state, and street mappings. If you're using the designer on a managed package, go to the Output tab, and delete the city, state, and street mappings.
- Add a mapping from contact:Birthdate to contact:birthdate.
- From the App Launcher, find and select Integration Procedures.
- Click New.
- Enter a unique name, type, and subtype for your Integration Procedure.
- Enter a description for your Integration Procedure.
- Save your changes. The Integration Procedure canvas opens.
- Add the first Data Mapper Extract Action component:
- Enter DRExtractAddresses as the element name, and GetAddresses as the Data Mapper name.
- Add the second Data Mapper Extract Action component below the first Data Mapper Extract Action component.
- Enter DRExtractBirthdates as the element name, and GetBirthdates as the Data Mapper name.
-
Add a List Action component into the Structure panel below the second Data Mapper
Extract Action component and configure it with these settings:
Merge Lists Order - DRExtractAddresses:contact
- DRExtractBirthdates:contact
Merge Fields id Sort By - lastName
- firstName
- Add a Response Action component into the Structure panel below other action components.
- Enter ListAction1 in the Send JSON Path field, and contactMerge in the Send JSON Node field.
- On the Preview tab, in the Input Parameters pane, click Add Key-Value Pair.
- Enter id as the key and an Account Id from your org as the Value.
-
Click Execute.
The output is similar to this example:
{ "contactMerge": [ { "birthdate": "1975-10-03", "street": "300 Broadway", "state": "FL", "city": "Orlando", "lastName": "Jones", "id": "0036100001E5xrWAAR", "firstName": "Cathy" }, { "birthdate": "1976-10-04", "street": "400 Washington Blvd", "state": "AZ", "city": "Phoenix", "lastName": "Jones", "id": "0036100001E5xrvAAB", "firstName": "Doug" }, { "birthdate": "1973-10-01", "street": "100 Main Street", "state": "CA", "city": "San Francisco", "lastName": "Smith", "id": "0036100001E5xqnAAB", "firstName": "Albert" }, { "birthdate": "1974-10-02", "street": "200 Second Street", "state": "OR", "city": "Portland", "lastName": "Smith", "id": "0036100001E5xr2AAB", "firstName": "Ben" } ] }
What’s next: Create an Advanced List Merge Example.


