---
schema_version: "1"
id: d0d599fd384db7eda377c8902fff747b4b0654e9fac5a4fc4cfb4bbf379fd3e3
title: Create an Advanced List Merge Example (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_create_an_advanced_list_merge_example.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_create_an_advanced_list_merge_example.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 444a248b8bd21d7b4de69c98ad050a49594ad69f11efc683f00aedd6b6e804b1
description: For the managed package runtime, the next Integration Procedure is a modified version of the previous example. Instead of matching list items using Id fields, it uses the Advanced Merge feature to match first and last names.
products:
  - Omnistudio
release: "264"
---
# Create an Advanced List Merge Example (Managed Package)

For the managed package runtime, the next Integration Procedure is a modified version of the previous example. Instead of matching list items using Id fields, it uses the Advanced Merge feature to match first and last names.

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

To download a data pack of this example for Omnistudio for Managed Packages, click [here](https://volt.my.salesforce.com/sfc/p/o0000000IKm8/a/3m0000005uJ9/5I.B9eQeleyndMqq4Tyu7jj.R.8wSPDGRItlxjV3Q3c). 

1. [Create a Basic List Merge Example](https://help.salesforce.com/s/articleView?id=xcloud.os_create_a_basic_list_merge_example.htm&release=264.0.0&type=5 "For the managed package runtime, 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.").
2. Clone the GetBirthdates Omnistudio Data Mapper and name it GetBirthdates2. On the Output tab, change the **Output JSON Path** values from `contact:firstName` to `contact:FN` and from `contact:lastName` to `contact:LN`.
3. In the Integration Procedure, in the DRExtractBirthdates component, change the **Data Mapper Interface** to `GetBirthdates2`.
4. In the Integration Procedure, in the List Merge Action, check **Advanced Merge** and add the following rows to the Advanced Merge Map table:
    
    <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
            <colgroup>
              <col>
              <col>
              <col>
            </colgroup>
            <thead class="slds-text-title_caps ">
              <tr class="">
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d89524e116">
                  <p style="margin-bottom:0;">List Key</p>
                </th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d89524e122">
                  <p style="margin-bottom:0;">Matching Path</p>
                </th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d89524e128">
                  <p style="margin-bottom:0;">Matching Group</p>
                </th>
              </tr>
            </thead>
            <tbody>
              <tr class="">
                <td data-label="List Key" class="slds-cell-wrap" style="vertical-align:top;" headers="d89524e116 ">
                  <p style="margin-bottom:0;">
                    <code>DRExtractAddresses:contact</code>
                  </p>
                </td>

                <td data-label="Matching Path" class="slds-cell-wrap" style="vertical-align:top;" headers="d89524e122 ">
                  <p style="margin-bottom:0;">
                    <code>firstName</code>
                  </p>
                </td>

                <td data-label="Matching Group" class="slds-cell-wrap" style="vertical-align:top;" headers="d89524e128 ">
                  <p style="margin-bottom:0;">
                    <code>1</code>
                  </p>
                </td>

              </tr>
              <tr class="">
                <td data-label="List Key" class="slds-cell-wrap" style="vertical-align:top;" headers="d89524e116 ">
                  <p style="margin-bottom:0;">
                    <code>DRExtractBirthdates:contact</code>
                  </p>
                </td>

                <td data-label="Matching Path" class="slds-cell-wrap" style="vertical-align:top;" headers="d89524e122 ">
                  <p style="margin-bottom:0;">
                    <code>FN</code>
                  </p>
                </td>

                <td data-label="Matching Group" class="slds-cell-wrap" style="vertical-align:top;" headers="d89524e128 ">
                  <p style="margin-bottom:0;">
                    <code>1</code>
                  </p>
                </td>

              </tr>
              <tr class="">
                <td data-label="List Key" class="slds-cell-wrap" style="vertical-align:top;" headers="d89524e116 ">
                  <p style="margin-bottom:0;">
                    <code>DRExtractAddresses:contact</code>
                  </p>
                </td>

                <td data-label="Matching Path" class="slds-cell-wrap" style="vertical-align:top;" headers="d89524e122 ">
                  <p style="margin-bottom:0;">
                    <code>lastName</code>
                  </p>
                </td>

                <td data-label="Matching Group" class="slds-cell-wrap" style="vertical-align:top;" headers="d89524e128 ">
                  <p style="margin-bottom:0;">
                    <code>2</code>
                  </p>
                </td>

              </tr>
              <tr class="">
                <td data-label="List Key" class="slds-cell-wrap" style="vertical-align:top;" headers="d89524e116 ">
                  <p style="margin-bottom:0;">
                    <code>DRExtractBirthdates:contact</code>
                  </p>
                </td>

                <td data-label="Matching Path" class="slds-cell-wrap" style="vertical-align:top;" headers="d89524e122 ">
                  <p style="margin-bottom:0;">
                    <code>LN</code>
                  </p>
                </td>

                <td data-label="Matching Group" class="slds-cell-wrap" style="vertical-align:top;" headers="d89524e128 ">
                  <p style="margin-bottom:0;">
                    <code>2</code>
                  </p>
                </td>

              </tr>
            </tbody>
          </table>
5. On the Preview tab, click **Execute**. The output should look something like this:
    
    ```
    {
      "contactMerge": [
        {
          "LN": "Jones",
          "FN": "Cathy",
          "birthdate": "1975-10-03",
          "street": "300 Broadway",
          "state": "FL",
          "city": "Orlando",
          "lastName": "Jones",
          "id": "0036100001E5xrWAAR",
          "firstName": "Cathy"
        },
        {
          "LN": "Jones",
          "FN": "Doug",
          "birthdate": "1976-10-04",
          "street": "400 Washington Blvd",
          "state": "AZ",
          "city": "Phoenix",
          "lastName": "Jones",
          "id": "0036100001E5xrvAAB",
          "firstName": "Doug"
        },
        {
          "LN": "Smith",
          "FN": "Albert",
          "birthdate": "1973-10-01",
          "street": "100 Main Street",
          "state": "CA",
          "city": "San Francisco",
          "lastName": "Smith",
          "id": "0036100001E5xqnAAB",
          "firstName": "Albert"
        },
        {
          "LN": "Smith",
          "FN": "Ben",
          "birthdate": "1974-10-02",
          "street": "200 Second Street",
          "state": "OR",
          "city": "Portland",
          "lastName": "Smith",
          "id": "0036100001E5xr2AAB",
          "firstName": "Ben"
        }
      ]
    }
    ```

What’s next: [Create a List Merge Example with Dynamic Output Fields (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_create_a_list_merge_example_with_dynamic_output_fields.htm&release=264.0.0&type=5 "For the managed package runtime, the final Integration Procedure is a modified version of the previous example. It uses Dynamic Output Fields to eliminate the duplicate FN and LN JSON nodes from the output.").