Defining the event attributes

In the Fields section, define the attributes that will be integrated into the event content and will then be able to be used to personalize the transactional message.

The steps for adding and modifying fields are the same as for custom resources.

NOTE
If you want to create a multilingual transactional message, define an additional event attribute with the AC_language ID. This only applies to event transactional messages. After the event is published, the steps for editing the content of a multilingual transactional message are the same as for a multilingual standard email. See Creating a multilingual email.

Defining data collections

You can add to the event content a collection of elements, each element itself including several attributes.

This collection can be used in a transactional email to add product listings to the content of the message, for example a list of products - with the price, reference number, quantity, etc. for each product of the list.

  1. In the Collections section, click the Create element button.

  2. Add a label and an ID for your collection.

  3. Add all the fields you want to display in the transactional message for each product of the list.

    In this example, we added the following fields:

  4. The Enrichment tab allows you to enrich each item of the collection. This will enable you to personalize the elements of the corresponding product listing with information from the Adobe Campaign database or from other resources that you created.

NOTE
The steps for enriching the elements of a collection are the same as described in the Enriching the event section. Note that enriching the event will not allow you to enrich a collection: you need to add an enrichment to the collection itself in the Collections section.

Once the event and the message are published, you will be able to use this collection in your transactional message.

Here is the API preview for this example:

Related topics: