Objects
Here’s a list of all the system objects currently available to be used within content via a liquid script object tag:
System Object | Details | Code |
---|---|---|
uid | This is the user_id of the individual being mailed. |
|
recipient_email | This is the email address of the individual being mailed. |
|
recipient_contact | This object contains the contact-level properties for the selected contact value. |
|
account | This is an object containing relevant account level information. The available properties are listed to the right and can be populated using object notation. |
|
current_date | This is the current UTC date. Format: YYYYMMDD. |
|
account_current_date | This is the current date for the account. Format: YYYYMMDD. |
|
current_timestamp | This is the current unix epoch timestamp in milliseconds. Note: Unix epoch timestamp is based on UTC by definition. |
|
account_current_timestamp | This is the current timestamp in milliseconds based on the account timezone configuration. |
|
campaign_name | This is the name of the campaign configured by the user during the campaign set-up. |
|
campaign_token | This is the campaign token configured by the user during campaign set-up. |
|
account_company_address | This is the address configured for the account in Settings and is commonly used to populate the mailing address used for CAN-SPAM compliance purposes. |
|
unsubscribe_link | This is the system generated unsubscribe link. |
|
manage_preferences_link |
| |
optin_link |
| |
view_email_in_browser_link | This is the system generated link to view a copy of the message in a browser. |
|
images_path |
| |
message_uid | This is the unique ID for the specific copy of a message being sent to a user. |
|
nudgespot_message_id | This is the same as message_uid. |
|
campaign (object) | This is an object containing relevant campaign-level information. The available properties are listed below and can be populated using object notation. |
|
The implementation of liquid "campaign.targeted_segment_name
" is not supported. However, we do offer support for using a liquid with the segment ID, accessible through "campaign.targeted_segment_id
". It's important to note that this liquid variable will only be functional during the actual campaign send, as audience evaluation takes place at that time. During campaign preview, this liquid variable won't work since the recipient generated for preview/proof is a mock version without specific details.