Prepare and send emails to recipients using Content Builder and Journey Builder in Marketing Cloud Engagement.
Required Editions
| Available in: Enterprise and Unlimited editions. |
-
Follow the steps in Create a Transactional Send
Journey.
- Save the Event Definition Key that you enter in step 5—you’ll use it later.
-
Create a data extension from the template
TriggeredSendDataExtension.
-
Create a request using the
AsyncSendEmailsApex class. (It’s part of the Vaccine Eligibility Form and Updates package.)- Enter the Event Definition Key as the value of the DEFINITION_KEY variable.
-
Add whatever personal attributes you added to the data extension as fields in the
RecipientAttributesclass. -
Add whatever shared attributes you added to the data extension as fields in the
Attributesclass. - If you support multiple languages, add logic that sends emails based on the language the recipient selected for the form. This requires translating the emails first
-
Uncomment the call to
sendEmails()in theAsyncPostRegProcessorApex class. (It’s part of the Vaccine Eligibility Form and Updates package.) -
The
AsyncPostRegProcessorApex class contains a function calledisLeadEligible. This is where you can set custom logic for eligibility in order to determine which recipients receive the message.