Email Merge Variables (Syntax Cheat Sheet)

Edited

The following fields are available for use in Email Campaigns. Autoresponses, Call Time and Pledge templates allow most of these fields and others specific to their use.

Person Fields

{{name.first}} – First Name Field
{{name.last}} – Last Name Field
{{name.salutation}} – Salutation Field

{{primary_zip}} – Main zip code for a contact
{{primary_city}} – Main citycode for a contact
{{primary_state}} – Main state code for a contact, 2 characters (KY,DC).
{{zip}} – Synonym of {{primary_zip}}
{{city}} – Synonym of {{primary_city}}
{{state}} – Synonym of {{primary_state}}
{{occupation}} – Occupation listed on their Profile
{{employer}} – Employer listed on their Profile

*{{FirstName}} is replaced before Liquid syntax is ran, recommended to use {{name.first}} instead.

This Cycle

This cycle is based on the Candidates active election year. If a PAC/Non-Profit it’s the current year.

{{highest_contribution_this_cycle}}
{{total_contributions_this_cycle}}
{{last_contribution_this_cycle_date}}
{{last_contribution_this_cycle}}
{{lifetime_contributions}}

Contribution Examples

{{ highest_contribution_this_cycle | multiply 1.5 | default 5 | max 2800}}
Default must go before max as if a contact has not given a default of 5 will be applied

{{if last_contribution_this_cycle_date && (date.add_days last_contribution_this_cycle_date 5) < date.now


activeMessage = “It has been over ” + (date.now – last_contribution_this_cycle_date).days + ” days since your last donation.”
else
activeMessage = “Thanks for staying active!”
end}}
Must be created in the Script tab.

{{if city==”Louisville”}}local{{else}}support{{end}}