The upper case switch (\* upper) converts the text of a Salesforce merge field to uppercase in your generated document. Use it when formatting standards require capitals, for example for names, account types or status values.
Syntax
{{FieldName \* upper}}
Values
| Part | Effect |
|---|---|
FieldName | The merge field to convert, for example Contact.Name. |
\* upper | Shows the field's text in uppercase. For lowercase, use \* lower. |
Where to add it
Add \* upper after the field name inside the merge field in your Word template.
Example
| Value in Salesforce | Syntax | Output |
|---|---|---|
| John Doe | {{Contact.Name \* upper}} | JOHN DOE |
Works in
Word (DOCX) templates: the example on this page is a Word template field.
Common errors
- The document shows the tag, or a blank, instead of the text. Retype the whole tag in one go, check the field's API name, and check the field has a value. See Merge fields are blank or show their tags.