---
schema_version: "1"
id: e7473a958564b85fb2953df124374bb58ef33d2226e16925cda2c6744424df6c
title: Merge Fields for Experience Cloud Sites
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/experience/264-0-0/merge_fields_communities.md
canonical_url: https://help.salesforce.com/s/articleView?id=experience.merge_fields_communities.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: c05d425b77fed1208a8194c57a1052473de45231a7654e8652bcbf11fe07304c
description: You can personalize the email that you send to Experience Cloud site members by adding merge fields to your email templates.
products:
  - Experiences
release: "264"
---
# 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

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: both Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</td></tr></tbody></table>

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.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d60435e107">Field Name</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d60435e110">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e107 ">
              <p>
                <samp class="parmname">{!Network_Community_Name}</samp>
              </p>
              <p>OR</p>
              <p>
                <samp class="parmname">{!Community.Name}</samp>
              </p>
              <p>OR</p>
              <p style="margin-bottom:0;">
                <samp class="parmname">{!Community_Name}</samp>
              </p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e110 ">The name of the Experience Cloud site.</td>

          </tr>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e107 ">
              <p>
                <samp class="parmname">{!Network_Community_Url}</samp>
              </p>
              <p>OR</p>
              <p>
                <samp class="parmname">{!Community.Url}</samp>
              </p>
              <p>OR</p>
              <p style="margin-bottom:0;">
                <samp class="parmname">{!Community_Url}</samp>
              </p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e110 ">
              <p>The URL to the login page of the Experience Cloud site, for example,
                &nbsp;<samp class="filepath">https://<var>MyDomainName</var>.my.site.com/partners/login</samp>.</p>
              <p>{!Community_Url}
                is populated in the:</p>
              <ul>
                <li>Welcome New Member template when <strong class="uicontrol">Send welcome email</strong> is
                  selected</li>
                <li>Forgot Password or Change Password template if the external user receiving the
                  email is a member of the Experience Cloud site</li>
              </ul>
              <p style="margin-bottom:0;">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. </p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e107 ">
              <samp class="parmname">{!Receiving_User.Username}</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e110 ">The username of the user receiving the email. This field only renders for mass
              emails.</td>

          </tr>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e107 ">
              <p>
                <samp class="parmname">{!NetworkMember.Operating_System}</samp>
              </p>
              <p>OR</p>
              <p style="margin-bottom:0;">
                <samp class="parmname">{!Operating_System}</samp>
              </p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e110 ">The operating system of the Experience Cloud site member.</td>

          </tr>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e107 ">
              <p>
                <samp class="parmname">{!NetworkMember.EmailVerify_Url}</samp>
              </p>
              <p>OR</p>
              <p style="margin-bottom:0;">
                <samp class="parmname">{!EmailVerify_Url}</samp>
              </p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e110 ">The verification link sent to a user via email.</td>

          </tr>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e107 ">
              <p>
                <samp class="parmname">{!ChgEmailVer.NewEmail}</samp>
              </p>
              <p>OR</p>
              <p style="margin-bottom:0;">
                <samp class="parmname">{!ChgEmailVer.OldEmail}</samp>
              </p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e110 ">The user’s email address.</td>

          </tr>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e107 ">
              <samp class="parmname">{!ChgEmailVer.URL}</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e110 ">The verification link sent to a user via email when their email address is
              changed.</td>

          </tr>
        </tbody>
      </table>

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-experience-communities-264-0-0-production-enus/bf7df212-91a1-4fa3-a007-4d6f3e3b470b/images/icon_note.png)

Note Available merge fields differ between email templates. View Available Merge Fields at the top of each email template to see the available fields.

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.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d60435e299">Field Name</th>

            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d60435e302">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e299 ">
              <samp class="parmname">$Network.ActionForVerificationEmail</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e302 ">Used in one-time password (OTP) and device activation emails to specify the
              action that prompted sending a verification email.</td>

          </tr>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e299 ">
              <samp class="parmname">$Network.AsyncVerificationLink</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e302 ">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).</td>

          </tr>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e299 ">
              <samp class="parmname">$Network.BrowserForVerificationEmail</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e302 ">Used in OTP and device activation emails to specify the browser where the
              action occurred that prompted sending a verification email.</td>

          </tr>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e299 ">
              <samp class="parmname">$Network.CodeForVerificationEmail</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e302 ">The verification code sent in the OTP or device activation email.</td>

          </tr>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e299 ">
              <samp class="parmname">$Network.ChgEmailVerOldEmail</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e302 ">The user’s old email address, when they change it.</td>

          </tr>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e299 ">
              <samp class="parmname">$Network.ChgEmailVerNewEmail</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e302 ">The user’s new email address, when they change it.</td>

          </tr>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e299 ">
              <samp class="parmname">$Network.ChgEmailVerLink</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e302 ">The link, sent to the user’s new email address, that the user follows to verify
              their email address change.</td>

          </tr>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e299 ">
              <samp class="parmname">$Network.Name</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e302 ">The name of the Experience Cloud site.</td>

          </tr>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e299 ">
              <samp class="parmname">$Network.NetworkUrlForUserEmails</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e302 ">
              <p>The URL to the login page of the Experience Cloud site, for example,
                <samp class="filepath">https://<var>MyDomainName</var>.my.site.com/partners/login</samp>.
              </p>
              <p style="margin-bottom:0;">If
                this merge field is in the welcome email to new members, the URL is appended with
                a link to a reset password page.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e299 ">
              <samp class="parmname">$Network.OperatingSystemForVerificationEmail</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e302 ">Used in OTP and device activation emails to specify the operating system where
              the action occurred that prompted sending a verification email.</td>

          </tr>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e299 ">
              <p>
                <samp class="parmname">$Network.passwordLockTime</samp>
              </p>
              <p>OR</p>
              <p style="margin-bottom:0;">
                <samp class="parmname">{!PASSWORD_LOCK_TIME}</samp>
              </p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e302 ">Used in the formula field for lockout emails to specify how long a user must
              wait until logging in again after being locked out.</td>

          </tr>
        </tbody>
      </table>

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.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d60435e488">Field Name</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d60435e491">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e488 ">
              <samp class="parmname">{!Case.Link}</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e491 ">
              <p>Used in:</p>
              <ul>
                <li>Case comment notifications to contacts and owners</li>
                <li>Case creation and update notifications to contacts</li>
              </ul>
            </td>

          </tr>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e488 ">
              <samp class="parmname">{!&lt;any_object&gt;.Link}</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d60435e491 ">
              <p>Used in:</p>
              <ul>
                <li>Approval requests sent to approvers and delegated approvers</li>
                <li>Workflow email alerts</li>
              </ul>
            </td>

          </tr>
        </tbody>
      </table>

To insert merge fields into your Experience Cloud site email templates:

1. From Setup, enter Email Templates in the Quick Find box, and select **Classic Email Templates**. Next to an email template, click **Edit**.
2. 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**.
3. Copy the merge field value into the body of the email template.

#### See Also

- [Customize Email Sent from Experience Cloud Sites](https://help.salesforce.com/s/articleView?id=experience.networks_customize_email.htm&release=264.0.0&type=5 "You can customize email sender information and Chatter email branding. You can also customize email templates, such as templates for welcoming new members and resetting members’ passwords. Decide how Salesforce sends emails for users with unverified email domains, and customize email templates in the user interface.")
- [Email Templates in Salesforce Classic](https://help.salesforce.com/s/articleView?id=sales.admin_emailtemplates.htm&type=5&language=en_US)