Difference between revisions of "Template Variable Tool"
From AgileApps Support Wiki
imported>Aeric |
imported>Aeric |
||
Line 21: | Line 21: | ||
:* <tt>$today</tt> (Current Date) always shows the date in a standard format. The value on June 24, 2011 would show as "24 June, 2011". | :* <tt>$today</tt> (Current Date) always shows the date in a standard format. The value on June 24, 2011 would show as "24 June, 2011". | ||
:* <tt>$today_dateformatted</tt> (Current Date User Date Format) gives the date format, if any, set by the user or, by default, set for the company. For a date format of mm/dd/yyyy, the value on June 24, 2011 would show as "06/24/2011". | :* <tt>$today_dateformatted</tt> (Current Date User Date Format) gives the date format, if any, set by the user or, by default, set for the company. For a date format of mm/dd/yyyy, the value on June 24, 2011 would show as "06/24/2011". | ||
Revision as of 22:35, 11 October 2012
Template Variable Contexts
Template variables have slightly different syntax in different contexts. In addition, the available variables can differ between contexts. The template variable tool gives you the possible variables, in the correct syntax for each context:
Context Available Variables - Email Templates and Letterheads
- Web Form notifications and auto-response email messages
- Template Variables in Email Templates
- Template Variables in Service Provider Email Messages
- Global Template Variables (custom variables)
- Record, User, Company, and Date/Time fields
- History fields (last comment and recent notes)
- Global Template Variables
- Record, User, Company, and Date/Time fields
- History fields (last comment and recent notes)
- Record fields
- User Fields, Company Fields
For Service Provider emails:
- From the Service Provider URL: http://{yourDomain}/networking/Service?t=1&targetpage=ViewPort.jsp
- Go to Settings > Service Provider Settings > Manage Email Templates
Using the Template Variable Tool
This tool is used to look up the names of variables that can be used in templates. The variables are based on fields in objects:
To lookup a template variable:
- Choose a Category
- Category - Contains multiple categories of fields you can choose.
- Choose a field from the Category
- Fields - Contains the fields available in the selected category.
- The variable name is displayed. For example:
- Variable field: $user.full_name
- Copy the variable name from the field and paste it into your template or email.
- Note: The field Name is displayed. It is likely to be somewhat different from the field Label that is displayed in the GUI.
User Date Fields There are two date variables in the User Fields category
- $today (Current Date) always shows the date in a standard format. The value on June 24, 2011 would show as "24 June, 2011".
- $today_dateformatted (Current Date User Date Format) gives the date format, if any, set by the user or, by default, set for the company. For a date format of mm/dd/yyyy, the value on June 24, 2011 would show as "06/24/2011".