Object Reference for Salesforce and Lightning Platform
Newer Version Available
NetworkAffinity
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 |
|
| ProfileId |
Usage
Use the NetworkAffinity object to assign a default community to a user profile. The default community enables you to stamp network-agnostic email notifications to all users with that profile with the selected community's branding. The default community also becomes the target destination for email notification links. Network-agnostic email notifications include notifications about records, like cases, accounts, and opportunities.
The NetworkId field is not updatable through the API in Workbench, Apex, or SOAP. If you want to change the value for NetworkId, you must delete the record and create one with the right value.