While tools and options will exist now or in the near future to make this process easier for customers using Agentforce Marketing, many remain who use existing Marketing Cloud Engagement functionality. All face the challenge of orchestrating Campaign Members out of a current Journey when they are removed from an associated Campaign. Bringing new Campaign Members into a Journey is one of the easiest things to do in Marketing Cloud Engagement but when a Campaign Member is removed from a Campaign, getting them out requires a few extra steps.
Setup a Data Extension to Log Entries
Name the Data Extension as desired as a Sendable Data Extension.
Create an Attribute Group
Add the Update Contact Activity to Your Journey
You should now have a functional journey log which will write a new row in the Data Extension with the Lead or ContactId used for entry into the journey. As either Leads or Contacts may be added to a journey, the LeadId or ContactId will be added to a field named as CampaignMember:Common:Id in the entry data extension. That value is used to set the relationship to SubscriberKey. This is how the SubscriberKey is added to the Journey Log you created in Step One.
Build an Automation to Update the "InCampaign" Value
This is the most complicated part of this process due to the number of steps required:
- Update the
FROMto your appropriate Data Extension Journey Log name (that you created in Step 1) - Update the CampaignId that is used for your journey. You can locate the id within the Journey Entry Event setup
SELECT ce.SalesforceId, CASE WHEN cm.Id IS NULL THEN 0 ELSE 1 END AS InCampaign
FROM [YOUR DATA EXTENSION NAME] ce
LEFT JOIN CampaignMember_Salesforce cm ON ce.SalesforceId = cm.ContactId
AND cm.CampaignId = 'UPDATE_THE_CAMPAIGN_ID_HERE'Update the Exit Criteria in Your Journey
You can optionally use Exit Criteria or a decision split. If using Exit Criteria, keep in mind that exits will not occur or be evaluated until the end of a wait step.
A summary of the steps completed:
- Created a Data Extension to serve as a Journey Log for all entrants
- Created an attribute group to connect the log to the Contact Data Model
- Built and scheduled an Automation to continuously update the log by identifying individuals who are no longer in the Campaign
- Added Exit Criteria to identify when a record is no longer in a campaign (as indicated by
InCampaign = FALSE)
Need Help With Journey Builder Logic?
Complex journey scenarios are our specialty. Whether you're building from scratch or untangling existing logic, Light Your Fires can help you get it right.
Let's Talk