Articles in this section

Example: Merge Mailchimp lookup results into a Salesforce import

This example builds a flow that exports campaign folders from Mailchimp, looks up regular email campaigns from a second Mailchimp account, and imports the combined data into Salesforce. Use it to see how a lookup step and a results mapping work together. It's for builders who know how to create a flow and want a concrete lookup pattern.

The flow has three steps:

  1. Export campaign folders from Mailchimp.
  2. Look up email campaign information.
  3. Import the email campaign data into Salesforce.

Configure the lookup

The lookup uses a connection to a different Mailchimp account, so it can retrieve information that the export doesn't have.

  1. Open the lookup step.
  2. Select the connection for the second Mailchimp account.
  3. Under What would you like to export?, select the Campaigns API and the Get all campaigns operation.
  4. Under Configure search parameters, select Launch to refine the search. The options depend on the API's available fields. For this example, set Campaign type to regular so the lookup returns only regular campaigns.
  5. To check the results, select Send in the Preview panel.

Configure the results mapping

Map the lookup's data to a new field named regular_campaign. The lookup data is added to each source record under that name. To configure the mapping, see Configure results mapping.

Use the lookup data in the Salesforce import

The record that reaches the Salesforce import now includes regular_campaign. Map its fields to Salesforce fields in the import mapping. To open the mapping, see Configure import mapping in Mapper 1.0.