Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
$Network
Usage
Use dot notation to access your Experience Cloud site’s name and login page URL.The login page URL depends on whether the site uses the standard or a custom login page.
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. |
Example
1{!$Network.Name}
2{!$Network.NetworkUrlForUserEmails}