Table of Contents
Email Variables & Conditions
Updated
by Jennifer Trower
Read Time: 4 mins
Using Variables in Sonar
Variables pull live data from your Sonar instance into a message, an agreement, or a canned reply. Sonar replaces the variable with the real value at the moment the item is generated, so one template can serve every account.
The variables available to you depend on where you are working, and inside a triggered message they depend on which trigger you select. An agreement template does not offer the same variables as a triggered message, and a mass message offers far fewer than either. Find your context below, then jump to the matching section.
Where Variables Are Available
Triggered Message Variables
The Variables menu will not appear in the message body until the Trigger field is filled in. Once a trigger is selected, the menu appears and lists only the variables that trigger supports.
Most triggers offer the same account set, then add a small number of variables specific to the event. Two triggers are different: they cover Sonar users rather than accounts, and they offer the user set instead.

See the section below for the available workaround and step-by-step instructions.
Known Issue: Variable Formatting When Pasting
This workaround uses the { } button shown here.

Temporary Workaround:
1. Click the { } button within the text editor.

2. Paste the content that contains variables.

3. Click the { } button again.

For a full guide to the editor and its other controls, see Sonar's Rich Text Editor.
Account set
Available to 19 of the 23 triggers.
What each trigger adds
The invoice set
Added to the account set by the three invoice-generating triggers marked above.
The user set
USER_XXX variables refer to a user in your Sonar instance found under Settings > Security > Users. In other words, an employee user rather than a customer. Only the two user triggers offer these, and those triggers do not offer any account or billing variables.
Saved Message and Mass Message Variables
Saved Messages and Mass Messages share one small variable set. Because these messages are written by hand rather than fired by an event, Sonar has no invoice, job, or payment record to draw from, so only account and contact level data is available.
Canned Reply Variables
Agreement Template Variables
Related Articles
- Trigger Explanations
- Triggered Messages: Setup
- Saved Messages: Overview
- Using the Mass Message Tool
- Canned Replies Examples & Templates
- Agreement Templates
