You can insert attributes along with functions to dynamically replace values by clicking on { } in the template.
Select the field that you want to replace.
Add "|" in the attribute to apply the function.
How to auto-replace the last name when the last name is not mentioned in any contact?
SM: To auto-replace the last name with a default word when the last name does not exist in contact, You can use the "default" function in an email template. It allows you to specify a fallback in case a value doesn’t exist.
In this example, the Last Name is not defined, so the default value is used.
Input :
{{ last_name | default: there }}
Output :
there

How to update the date format in the attribute?
SM: To update the date format in the attribute, You can use the "Date" function.
In this example, the Value of the custom field is updated in YYYY-MM-DD format.
Input :
Your Due Date is : {{Contact.dateCustomField1 | date: "%Y-%m-%d" }}
Output :
Your Due Date is : 2020-12-23

How can I multiply value to existing field in Salesmate?
SM: To multiply a specific number with a field value you can use "times" function.
In this example, We are multiplying the field "Commission" with integer 5.
Input :
Your Commission is ${{Contact.dateCustomField1 | times: 5 }}
Output :
Your Commission is $1000
Comments
0 comments
Article is closed for comments.