Newer Version Available

This content describes an older version of this product. View Latest

$Network

A global merge field type to use when referencing community details in a Visualforce email template.

Usage

Use dot notation to access your community’s name and login page URL.The login page URL depends on whether the community uses the standard or a custom login page.

The $Network global merge field type works only in the context of Visualforce emails for communities.

Note

For more flexibility, you can create custom Communities 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 Communities email templates.

Field Name Description
$Network.ActionForVerificationEmail Used in one-time password (OTP) 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 emails to specify the browser where the action occurred that prompted sending a verification email.
$Network.CodeForVerificationEmail The verification code sent in the OTP email.
$Network.ChgEmailVer.OldEmail The user’s old email address, when they change it.
$Network.ChgEmailVer.NewEmail 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 community.
$Network.NetworkUrlForUserEmails The URL to the login page of the community, for example, https://acme.force.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 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.

Example

1{!$Network.Name}
2{!$Network.NetworkUrlForUserEmails}