•••
 
Documentation   /   Reference: syntax   /   Constant variables
 
 

Constant variables

 

Constant variables are set by Plainly. Those starting with * describe the current moment or the current user.

Dates and times

All are Unix timestamps. Format them with [[DATE]]. See Logic statements.

Variable Value
{{*now}} The current time, to the second
{{*today}} The start of today
{{*yesterday}} 24 hours ago
{{*tomorrow}} 24 hours from now

The current user

Variable Value
{{*my_name}} Name of the user viewing the page
{{*my_email}} Their email address
{{*my_phone}} Their phone number
{{*my_pic}} URL of their profile picture
{{*my_id}} Their unique ID

Permissions

Available in tasks. Each is true or false.

Variable True when the current user is...
{{*adviser}} an adviser
{{*admin}} an admin
{{*senior}} an adviser or an admin, or both
{{*authorised_signatory}} an authorised signatory on the account
{{*group_admin}} a group admin
Important

Test permission variables with a match type: [[IF=*adviser(EQUALS true)]]...[[ENDIF]]. A plain [[IF=*adviser]] is true for any non-blank value, including false.

Tasks

Variable Value
{{checklist_name}} The task's name
{{checklist_key}} The task's unique key
{{checklist_url}} The task's URL: https://plainly.com/checklist?key={checklist_key}
{{document_url_base}} The base URL for documents in your account: https://{your_account}.plainly.com/a/
{{is_assigned}} true if the task is assigned to a user
{{assigned_to_name}} Assigned user's name
{{assigned_to_email}} Assigned user's email address
{{assigned_to_phone}} Assigned user's phone number, if set
{{assigned_to_pic}} Assigned user's profile picture URL, if uploaded
{{assigned_to_id}} Assigned user's unique ID

Templates and documents

Variable Value
{{document_key}} The document's unique key
{{document_url}} The document's signing link: https://{your_account}.plainly.com/a/{document_key}
{{document_url_base}} https://{your_account}.plainly.com/a/
{{signing_link}} The document's link, in template emails
{{message}} The message added when sending, in template emails

For the account, user and document fields such as {{c_entity}} and {{a_counterparty_name}}, see Document variables.