Network Class
Namespace
Network Constructors
Network Methods
communitiesLanding()
Signature
public static String communitiesLanding()
Return Value
Type: PageReference
Usage
If digital experiences isn’t enabled for the user’s org or the user is currently in the internal org, returns null.
createExternalUserAsync(user, contact, account)
Signature
public static String createExternalUserAsync(SObject user, SObject contact, SObject account)
Parameters
createRecordAsync(processType, mbObject)
forwardToAuthPage(startURL)
Signature
public static PageReference forwardToAuthPage(String startURL)
Parameters
- startURL
- Type: String
Return Value
Type: PageReference
Usage
If digital experiences isn’t enabled for the user’s org or the user is currently in the internal org, returns null.
getLoginUrl(networkId)
Signature
public static String getLoginUrl(String networkId)
Parameters
- networkId
- Type: String
- The ID of the Experience Cloud site you’re retrieving this information for.
Return Value
Type: String
Usage
Returns the full URL for the Lightning Platform or Experience Builder page used as the login page in the Experience Cloud site.
getLogoutUrl(networkId)
Signature
public static String getLogoutUrl(String networkId)
Parameters
- networkId
- Type: String
- The ID of the Experience Cloud site you’re retrieving this information for.
Return Value
Type: String
Usage
Returns the full URL for the Lightning Platform page, Experience Builder page, or Web page used as the logout page in the Experience Cloud site.
getNetworkId()
Signature
public static String getNetworkId()
Return Value
Type: String
Usage
If digital experiences isn’t enabled for the user’s org or the user is currently in the internal org, returns null.
getSelfRegUrl(networkId)
Signature
public static String getSelfRegUrl(String networkId)
Parameters
- networkId
- Type: String
- The ID of the Experience Cloud site you’re retrieving this information for.
Return Value
Type: String
Usage
Returns the full URL for the Lightning Platform or Experience Builder page used as the self-registration page in the Experience Cloud site.
loadAllPackageDefaultNetworkDashboardSettings()
Signature
public static Integer loadAllPackageDefaultNetworkDashboardSettings()
Return Value
Type: Integer
Usage
If digital experiences is enabled, and the Salesforce Communities Management package is installed, maps the dashboards provided in the package onto each Experience Cloud site’s unconfigured dashboard settings. Returns the number of settings it configures. This method is invoked automatically during site creation and package installation, but isn’t typically invoked manually.
If digital experiences isn’t enabled for the user’s org or the user is in the internal org, returns 0.
loadAllPackageDefaultNetworkPulseSettings()
Signature
public static Integer loadAllPackageDefaultNetworkPulseSettings()
Return Value
Type: Integer
Usage
If digital experiences is enabled, and the Salesforce Communities Management package is installed, maps the Insights reports provided in the package onto each Experience Cloud site’s unconfigured Insights settings. Returns the number of settings it configures. This method is invoked automatically during site creation and package installation, but isn’t typically invoked manually.
If digital experiences isn’t enabled for the user’s org or the user is in the internal org, returns 0.