Loading
Prepare for Email to Become the Default Login ExperienceRead More
Create a List Merge Example with Dynamic Output Fields

Create a List Merge Example with Dynamic Output Fields

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.

If you’re using the designer on a managed package, you can download a data pack of this example from here.

  1. Create an Advanced List Merge Example.
  2. In the List Action, give the Dynamic Output Fields setting a value of include.
  3. Go to the Preview tab.
  4. Click Edit as JSON. If you’re using the designer on a managed package, click Preview, and then click Edit as JSON.
  5. Click Add New Key-Value Pair. Enter include as the key, and birthdate,street,state,city,lastName,firstName,id as the value. Only commas, and not spaces, separate the node names.
  6. 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"
        }
      ]
    }
 
Loading
Salesforce Help | Article