EmailMergeFieldService Class

Extract a list of merge fields for an object. A merge field is a field you can put in an email template, mail merge template, custom link, or formula to incorporate values from a record.

ConnectApi

These methods are for EmailMergeFieldService. All methods are static.

Extract the merge fields for a specific object.

39.0

No

public static ConnectApi.EmailMergeFieldInfo getMergeFields(List<String> objectApiNames)

objectApiNames

Type: List<String>

The API names for the objects being referenced.

Type: ConnectApi.EmailMergeFieldInfo