NetworkAffinity

Represents a junction object that associates a user profile with a Network object, that is, with an Experience Cloud site. Use NetworkAffinity to assign a default Experience Cloud site to a user profile. This object is available in API version 41.0 and later.

Supported Calls

create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()

Special Access Rules

To work with the NetworkAffinity object, you must have View Setup or Customize Application permission.

Fields

Field Name Details
NetworkId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the default Experience Cloud site associated with a user profile.
ProfileId
Type
reference
Properties
CreateFilter, Group, Sort, Update
Description
ID of the user profile the default Experience Cloud site is assigned to.

Usage

The default Experience Cloud site allows you to stamp site-agnostic email notifications to all users with that profile with the selected site's branding. The default Experience Cloud site also becomes the target destination for email notification links. Site-agnostic email notifications include notifications about records, such as cases, accounts, and opportunities.

The NetworkId field is not updatable through the Apex, REST API, or SOAP API. If you want to change the value for NetworkId, you must delete the record and create one with the right value.