To make sure each event can be changed into a personalized message, you need to create a message template to match each event type.
Event types need to be created beforehand. For more on this, refer to Create event types.
Transactional message templates contain the necessary information for personalizing the transactional message. You can also use templates to test the message preview and send proofs using seed addresses before delivering to the final target. For more on this, see Test transactional message templates.
Go to the Message Center >Transactional message templates folder in the Adobe Campaign tree.
In the list of transactional message templates, right-click and select New in the drop-down menu or click the New button above the list of transactional message templates.
In the delivery window, select the delivery template suitable for the channel you want to use.
Change its label if necessary.
Select the type of event that matches the message you want to send.
Event types need to be created beforehand in the console. For more on this, refer to Create event types.
An event type cannot be linked to more than one template.
Enter a nature and a description, then click Continue to create the message body (refer to Create the message content).
The definition of the transactional message content is the same as for regular deliveries in Adobe Campaign. For instance, for an email delivery, you can create content in HTML or text format, add attachments or personalize the delivery object. For more on this, refer to the Email delivery chapter.
Images included in the message must be publicly accessible. Adobe Campaign does not provide any image upload mechanism for transactional messages.
Unlike in JSSP or webApp,
<%= doesn’t have any default escaping.
In this case, you have to escape each data coming from the event properly. This escaping depends on how this field is used. For example, within a URL, please use encodeURIComponent. To be displayed in the HTML, you can use escapeXMLString.
Once you have defined your message content, you can integrate event information into the message body and personalize it. Event information is inserted into the body of the text thanks to personalization tags.
To insert personalization tags into the body of an email message, apply the following steps:
In the message template, click the tab that matches the email format (HTML or text).
Enter the body of the message.
In the body of the text, insert the tag using the Real time events > Event XML menu.
Fill in the tag using the following syntax: element name.@attribute name as shown below.
Save your content.
Your message is now ready to be tested.