When rendering an email, this function can be used to store personalized information in the data model. This can be useful when working with dynamically generated emails and you want to keep track of the articles/products that have been previously sent to the recipient. The purpose is to exclude them from future mailings or for reporting purposes.
Arguments
Argument | Description |
---|---|
table | The table name in the data model to which new information should be added. |
column name | You can specify one or more columns from the respective table and their corresponding values per customer. |
Examples
Saving data in a table linked to the customer table
Below is an example data model where broadcast details are stored per customer:
Required Smarty code in the email content:
Outcome in the data model:
Saving data in a standalone table
Below is an example where the target table is a standalone table. In addition, the columns customerid and email address have been added to trace the relationship to the customer, but this could also be done based on other system fields.
Required Smarty code in the email content:
Outcome in the data model: