You are here:
Merge Fields for Experience Cloud Sites
You can personalize the email that you send to Experience Cloud site members by adding merge fields to your email templates.
Required Editions
| Available in: both Salesforce Classic and Lightning Experience |
| Available in: Enterprise, Performance, Unlimited, and Developer Editions |
When you enable digital experiences in your org, Salesforce provides text-based email templates to simplify communicating with your Experience Cloud site members. You can use these templates to:
- Welcome new members
- Handle forgotten passwords
- Reset passwords
- Notify users when they’re locked out after failing to log in after so many attempts
- Comment on cases
- Send one-time passwords when identity verification is required for multi-factor authentication or passwordless login
- Send one-time passwords when identity verification is required for device activation
- Send verification links in async email messages for identity verification
- Send verification emails when a user changes their email address
Experience Cloud site email templates have merge fields unique to sites. You can find them under the Network Member Fields field type. You can also use other merge field types, such as Receiving User and Organization. Here are a few merge fields commonly used in Experience Cloud site email templates.
| Field Name | Description |
|---|---|
{!Network_Community_Name} OR {!Community.Name} OR {!Community_Name} |
The name of the Experience Cloud site. |
{!Network_Community_Url} OR {!Community.Url} OR {!Community_Url} |
The URL to the login page of the Experience Cloud site, for example, https://MyDomainName.my.site.com/partners/login. {!Community_Url} is populated in the:
The login page URLs populated for authenticated LWR sites created after Winter ’23 have a different structure than the login page URLs populated for all other Experience Cloud sites. Clicking the URL still directs users to your site’s login page as expected. |
| {!Receiving_User.Username} | The username of the user receiving the email. This field only renders for mass emails. |
{!NetworkMember.Operating_System} OR {!Operating_System} |
The operating system of the Experience Cloud site member. |
{!NetworkMember.EmailVerify_Url} OR {!EmailVerify_Url} |
The verification link sent to a user via email. |
{!ChgEmailVer.NewEmail} OR {!ChgEmailVer.OldEmail} |
The user’s email address. |
| {!ChgEmailVer.URL} | The verification link sent to a user via email when their email address is changed. |
For more flexibility, you can create custom Experience Cloud
site email templates in Visualforce. For a Visualforce email template, use the $Network global merge field type and its properties, as
described in this table. These fields are populated only in Visualforce Experience Cloud
site email templates.
| Field Name | Description |
|---|---|
| $Network.ActionForVerificationEmail | Used in one-time password (OTP) and device activation emails to specify the action that prompted sending a verification email. |
| $Network.AsyncVerificationLink | Used in asynchronous emails to send a verification link (URL) to users. Users click the link to verify their email address with Salesforce. After verifying their email address, external users can log in with a one-time password (OTP) via email (passwordless login). |
| $Network.BrowserForVerificationEmail | Used in OTP and device activation emails to specify the browser where the action occurred that prompted sending a verification email. |
| $Network.CodeForVerificationEmail | The verification code sent in the OTP or device activation email. |
| $Network.ChgEmailVerOldEmail | The user’s old email address, when they change it. |
| $Network.ChgEmailVerNewEmail | The user’s new email address, when they change it. |
| $Network.ChgEmailVerLink | The link, sent to the user’s new email address, that the user follows to verify their email address change. |
| $Network.Name | The name of the Experience Cloud site. |
| $Network.NetworkUrlForUserEmails | The URL to the login page of the Experience Cloud site, for example, https://MyDomainName.my.site.com/partners/login. If this merge field is in the welcome email to new members, the URL is appended with a link to a reset password page. |
| $Network.OperatingSystemForVerificationEmail | Used in OTP and device activation emails to specify the operating system where the action occurred that prompted sending a verification email. |
$Network.passwordLockTime OR {!PASSWORD_LOCK_TIME} |
Used in the formula field for lockout emails to specify how long a user must wait until logging in again after being locked out. |
For more information on creating Visualforce templates, see the Visualforce Developer Guide.
If your Experience Cloud site uses cases, approvals, or workflows, emails created from an email template that use the {!<any_object>.Link} or {!Case.Link} merge fields include a link to the record in the site. If the user receiving the email is a member of multiple active Experience Cloud sites, the link goes to the oldest active site. If the user is already logged in to a site and clicks the link in the email, the link goes to that site. If the user isn't a member of any site, the link goes to the internal org. If the user is a member of a portal and a site, the link goes to the site.
| Field Name | Description |
|---|---|
| {!Case.Link} | Used in:
|
| {!<any_object>.Link} | Used in:
|
To insert merge fields into your Experience Cloud site email templates:
- From Setup, enter Email Templates in the Quick Find box, and select Classic Email Templates. Next to an email template, click Edit.
- Under Available Merge Fields, from the dropdown menu, select the field type, and then select the field. For merge fields specific to sites, select Network Member Fields.
- Copy the merge field value into the body of the email template.

