The phone format switch formats Salesforce phone numbers in your Word templates, so they appear consistently and are easy to read in customer communications, contracts and regional reports.

Syntax

{{Object.PhoneField \ PHONE:Pattern}}
{{Object.PhoneField \ PHONE:Pattern:INTERNATIONAL}}

The keyword isn't case-sensitive: PHONE: and Phone: both work.

Values

PartEffect
# in PatternOne digit of the phone number. Any other characters, such as ., -, (, ) and spaces, appear as typed.
:INTERNATIONAL (optional, at the end)Adds the international prefix, for example +1-.

Where to add it

Add the switch after the field name inside the merge field in your Word template.

Example

Input: an account whose Phone is 1234567890.

FormatSyntaxOutput
Dot-separated{{Account.Phone \ Phone:###.###.####}}123.456.7890
Area code in brackets{{Account.Phone \ PHONE:(###) ###-####}}(123) 456-7890
Hyphen-separated{{Account.Phone \ PHONE:###-###-####}}123-456-7890
International{{Account.Phone \ PHONE:###-###-####:INTERNATIONAL}}+1-123-456-7890

Works in

Word (DOCX) templates: the examples on this page are Word template fields.

Common errors