Field Functions
Introduction to field functions
This topic describes how to work with field functions to personalize or adjust mailing content. Optimizely Campaign uses the template engines Dynamic rendering (ODR) and Velocity that lets you create your own field functions.
Personalized salutations
This topic describes ODR and Velocity salutation logics. By default, Optimizely Campaign uses ODR salutation logic.
Recipient data
This topic describes how you can use field functions to process recipient data and modify texts and time specifications. For example, if you have a recipient list field for the date of the last purchase, you can use a field function to display the date in the mailing text We miss you!
Details about the sending of a message
This topic describes how to process mailing details using field functions.
External data
This topic describes how to process external data using field functions. If you retrieve data via API and store it as a JSON string, you can display the content as text with the following velocity code If recipient list fields contain data as JSON, you can display the content as text using the following velocity code You have a recipient list with a custom field in text format that contains the following JSON string {"clearname" "John Smith", "unsubscribelink" "http //www.
Special functions
This topic describes special field functions in Velocity and ODR. By default, the unsubscribe link in the mailing only redirects to one confirmation page.
Hashing and encoding
This topic describes how to encode data and create hash values using field functions. Base64 is an encoding method to not display data in clear text.