Loading

Email Template Merge Fields for User-Based Workflow Rules in Salesforce

Veröffentlichungsdatum: Jun 28, 2026
Beschreibung

When building email templates to use in Salesforce User-based workflow rules, you must choose the correct merge field type to reference the right user's data in the email. Salesforce provides four different merge field types for User-based workflow rules, and selecting the wrong type results in the email containing data for the wrong user or displaying blank fields.
The four merge field types available in User-based workflow email templates are:

  • Sending User — the user sending the email
  • Receiving User — the user receiving the email
  • User — the user who created or updated the record that triggered the workflow rule
  • Workflow Target User — the user record that was created or updated to trigger the workflow rule

Understanding the difference between these types is essential for building accurate, automated email notifications for User object workflows in Salesforce.

Lösung

Choosing the Right Merge Field Type for User-Based Workflow Email Templates

When a Salesforce workflow rule is built on the User object, the email template that is triggered can reference different users depending on the purpose of the notification. Use the guidance below to select the correct merge field type.

Workflow Target User

Use Workflow Target User fields to reference the user record that was created or updated to trigger the workflow rule.
Example: A workflow rule fires when a new User record is created. You want the email to include the new user's name, email address, and profile. Use Workflow Target User merge fields (for example, {!WorkflowTargetUser.Name} or {!WorkflowTargetUser.Email}) to pull data from the newly created user record.

User

Use User fields to reference the user who created or updated the record that triggered the workflow rule — in other words, the person who performed the action that fired the workflow.
Example: A workflow rule fires when a User record is updated. You want the email to show who made the change. Use User merge fields (for example, {!User.Name} or {!User.Email}) to reference the administrator or person who performed the update.

Sending User

Use Sending User fields to reference the Salesforce user account configured as the sender of the workflow email alert.
Example: You want the email footer to display the name and title of the system user account that sends automated emails in your org. Use Sending User merge fields for this.

Receiving User

Use Receiving User fields to reference the user who is receiving the workflow email alert.
Example: You want to personalize the email greeting with the recipient's first name. Use Receiving User merge fields (for example, {!ReceivingUser.FirstName}) to address the email to the correct person.

Nummer des Knowledge-Artikels

000382943

 
Laden
Salesforce Help | Article