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.
You can create custom email templates for communities using Visualforce, which allows you to use custom company branding in your email templates. For Visualforce email template, use the $Network global merge field type and its properties, as described in this table.
| Field Name | Description |
|---|---|
| $Network.Name | The name of the community, as entered during community creation. |
| $Network.NetworkUrlForUserEmails | The URL to the login page of a community. For
instance, https://acme.force.com/partners/login. If this merge field is part of the welcome email being sent to a new external user, the URL is appended with a link to a reset password page. This field is populated only if it is used in a Visualforce email template for one of three email types supported for Communities. |
Example
1{!$Network.Name}
2{!$Network.NetworkUrlForUserEmails}