Newer Version Available
$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.
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.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.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 | 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}