1. Activity for Marketing Automation

Identify contacts from different activities

Version:

If you associate more than one Marketing Automation (MA) activity with the same journey in Salesforce Marketing Cloud (SFMC), you must have a way to distinguish between contacts created by different activity triggers. You can use the PlanDefinitionId and ActivityId data extension fields to identify contacts created by different MA plans or by different activities within the same MA plan.

To find the PlanDefinitionId and ActivityId values for a given activity:

  1. On the Sitecore Launchpad, click Marketing Automation. Open the Marketing Automation (MA) campaign that you want to find the PlanDefinitionId value for.

  2. Make a note of the name of the MA campaign. In this example, the name is MA SFMC API:

    Marketing Automation campaign workflow chart.
  3. Open the Content Editor. In the Search field, enter the MA campaign name and click the icon.

    The search field in the Content Editor, with the search term MA SFMC API filled in.
  4. On the Content tab, the Item ID field contains the PlanDefinitionId value of the MA campaign.

    The content tab for a Marketing Campaign.
  5. To find the ActivityId value, make a note of the path in the Item Path field.

  6. In the Content Editor, navigate to the path from the Item Path field. In this example, the path is /sitecore/system/Marketing Control Panel/Automation Plans/2020/02/05/06/20/MA SFMC API-d3496628-9f5f-4760-8ff6-7cb566868768:

    The content tree showing the Marketing Control Panel node open to a specific Automation Plan.
    Note

    If the Automation Plans folder shows the text There are hidden items in this container, you must go to the menu ribbon, open the View tab, and select Buckets.

  7. In the Contents tab, scroll to the Plan Data field. Copy the contents of the field.

    The contents of the Plan Data field.
  8. Open a JSON editor, and paste the plan data into it. In the Activities node, you can see the ActivityTypeId.

    JSON editor showing the ActivityTypeID.
    Note

    If you do not have a text editor that can display the JSON format, you can use the online JSON editor at https://jsoneditoronline.org/

If you have suggestions for improving this article, let us know!