Every Data Field to be used in a workﬂow needs to be added by clicking the Manage data ﬁelds button over the workﬂow events toolbar:
This opens the Manage Data Fields dialog:
To add a new data ﬁeld, use the Add new record button.
Once deﬁned, Data Fields can be used within the workﬂow settings of the following elements: Start event and Set data event, API call, Execute Code, and Data switch. The values of Data Fields may also be used for personalization within the content of email messages used in workﬂows.
To insert the value of a Data Field in email message content, an API call, or the Execute Code element, use the following personalization tag format:
For example, the OrderID data ﬁeld would utilize the following personalization tag:
It is also possible to use the Data Fields with the Dynamic Content syntax:
For example, the OrderID data ﬁeld would utilize the following Dynamic Content syntax:
In the Dynamic Content mode it is also possible to check, if a Data Field was set using the following function:
For example, the OrderID data ﬁeld can be checked using the following Dynamic Content syntax:
To set the value of a workflow data field, use the following code:
Please refer to the API documentation for more information about triggering custom events.