The Label parameter shows the label of a picklist value instead of its API value.

By default, Docs Made Easy merges the API value of a picklist field. In many orgs, picklist values have API names that differ from their labels. Use Label when the document should show the label that users see in Salesforce.

Syntax

{{Label:ObjectName.FieldAPI}}

Values

ComponentEffect
ObjectName.FieldAPIThe API name of a picklist field. The document shows the label of the selected value.
Without Label: (default){{ObjectName.FieldAPI}} merges the picklist's API value.

Where to add it

Type the Label merge field in your Word template where you want the picklist label to appear.

Example

This picklist field has labels that differ from its API values:

Picklist labelPicklist API value
Basic SupportBasic_Support
Standard SupportStandard_Support
VIP SupportPremium_Support
SyntaxValueOutput
{{ObjectName.FieldAPI}}Premium_SupportPremium_Support
{{Label:ObjectName.FieldAPI}}Premium_SupportVIP Support

The picklist values in Salesforce:

Salesforce picklist field values showing labels that differ from API names

The Label merge field in the Word template:

Word template with the Label merge field for the picklist field

The generated document shows the label:

Generated document showing the picklist label VIP Support instead of the API value

Works in

The examples on this page use a Word template.

Notes

  • Label only works with picklist fields.
  • If a picklist value's label and API value are the same, the output is identical with or without Label.

Common errors