Identify contacts from different activities
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:
-
On the Sitecore Launchpad, click Marketing Automation. Open the Marketing Automation (MA) campaign that you want to find the PlanDefinitionId value for.
-
Make a note of the name of the MA campaign. In this example, the name is
MA SFMC API:
-
Open the Content Editor. In the Search field, enter the MA campaign name and click the
icon.
-
On the Content tab, the Item ID field contains the PlanDefinitionId value of the MA campaign.
-
To find the ActivityId value, make a note of the path in the Item Path field.
-
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:
NoteIf 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.
-
In the Contents tab, scroll to the Plan Data field. Copy the contents of the field.
-
Open a JSON editor, and paste the plan data into it. In the
Activitiesnode, you can see theActivityTypeId.
NoteIf you do not have a text editor that can display the JSON format, you can use the online JSON editor at
https://jsoneditoronline.org/