Add AMPscript to messages in Marketing Cloud Engagement to create sections of content for standard Distributed Marketing users to personalize, such as greeting, introduction, and conclusion.
Important If the same email is used in multiple activities within a single
journey, Distributed Marketing can’t provide unique personalization per message. To
provide unique personalization, duplicate the email and use it in subsequent
activities.
- To create an introduction for personalization, enter this AMPscript in the email:
%%[ Set @sfOrgId = sfOrgId Set @intro = intro Set @objectId = IIF(EMPTY(sfCampaignMemberId), id, sfCampaignMemberId) Set @journeyId = RegExMatch(journeyId,"(^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$)",1) Set @personalizeDE = Concat("PersonalizationDE", "_" , @sfOrgId, "_", @journeyId) Set @personalizeId = Concat(@objectId,_emailId,"intro") IF EMPTY(@intro) THEN set @introMsg = Lookup(@personalizeDE,"value","id",@personalizeId) ELSE THEN set @introMsg = @intro ENDIF ]%% %%=v(@introMsg)=%% - To create a conclusion for personalization, enter this AMPscript in the email:
%%[ Set @sfOrgId = sfOrgId Set @closing = closing Set @objectId = IIF(EMPTY(sfCampaignMemberId), id, sfCampaignMemberId) Set @journeyId = RegExMatch(journeyId,"(^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$)",1) Set @personalizeDE = Concat("PersonalizationDE", "_" , @sfOrgId, "_", @journeyId) Set @personalizeId = Concat(@objectId,_emailId,"closing") IF EMPTY(@closing) THEN set @closingMsg = Lookup(@personalizeDE,"value","id",@personalizeId) ELSE THEN set @closingMsg = @closing ENDIF ]%% %%=v(@closingMsg)=%% - To enable greeting for personalization, enter this AMPscript in the email:
%%greeting%%