Loading
Manage Users and Data Access
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Configure Account Relationship Data Sharing Rules

          Configure Account Relationship Data Sharing Rules

          After account relationships are enabled, set up an account relationship data sharing rule. This rule defines the relationship type, the type of information shared, and the record access granted.

          Required Editions

          Enable Account Relationships to use this feature. After you enable account relationships in your org, you can’t disable it.

          Available in: Salesforce Classic and Lightning Experience
          Available in: Enterprise, Performance, Unlimited, and Developer Editions
          Applies to: LWR, Aura, and Visualforce sites
          User Permissions Needed
          To create and manage Account Relationship Data Sharing Rules: Create and Set Up Experiences

          The following fields define your sharing rule:

          Field Name Description
          Name The name of your sharing rule. We suggest that you use something that describes the rule, such as Lead Sharing for Vendors.
          Developer Name API name.
          Description A summary of the sharing rule. We suggest that you include information in this description about Object Type, Account Criteria To Field, Account Relationship Type, and Access Level.
          Account Relationship Type This field defines the type of relationship between the accounts that are sharing records. This field also associates the account relationship data sharing rule with the account relationship. If the Account Relationship Type picklist doesn’t contain a value that you need, you can create a picklist value from the Account Relationship object definition page.
          Access Level The level of record access granted to the account that is receiving the information. Read and Write are the only access levels available.
          Object Type The records of the object that you’re sharing.
          Account To Criteria Field The field that determines how object records are shared. Use only owner and account lookup fields.
          Advanced Formula Static formula criteria that can be applied to the data sharing rule to further refine how objects are shared. When creating your static formula criteria, be sure to use the API name for any object fields that you include in the formula.

          Object Type and Account To Criteria Fields, on the account relationship data sharing rule, determine which data is shared and how it’s shared. Account relationship data sharing rules can apply to; accounts, campaigns, cases, contacts, custom objects, leads, opportunities, orders, partner fund allocations, partner fund claims, partner fund requests, and partner marketing budgets.

          1. From Setup, enter Digital Experiences in the Quick Find box. Select Digital Experiences.
          2. Click Settings.
          3. Check Enable Account Relationships and save your changes.
          4. Go to Setup and enter Account Relationship in the Quick Find box, then click Account Relationship Data Sharing Rule Settings | New.
          5. Enter the same value in the Account Relationship Type field as the account relationship that is using this rule.
          6. Specify the level of access the Account From gets to the Account To’s data, in the Access Level field.
          7. Search for the type of object that is being shared in the Object Type field.
          8. Note
            Note Custom lookup fields can be used in the Account To Criteria Field as long as they look up to a user or an account. If they look up to a user, then the rule applies to the specified object’s records owned by the Account To’s portal users. If it looks up to an Account, then the rule applies to the object’s records with the Account To name listed as their account.
            Use the lookup field to select how the object is shared. For example, if Account To wants to share only their partner users’ owned leads with Account From, use Owner Id in the Account To Criteria Field. If Account To wants to share all their account’s leads, the Account To Criteria field value is Partner Account Id.
          Example
          Example To share all leads owned by external users of Northern Trail Outfitters with Cloud Kicks, enter the following rule. Notice that the Account To Criteria Field value is Owner Id.
          Account relationship data sharing rule.

          Let’s say you want to share leads that have Northern Trail Outfitters listed as the Partner Account Id and who have 100 employees. Change the Account To Criteria Field value to Partner Account Id and enter the advanced formula, NumberOfEmployees = 100.

          Account relationship data sharing rule with and advanced formula
          Note
          Note Don’t use the following field types in static criteria fields:
          • Formula
          • Roll-Up Summary
          • Currency
          • Custom Data Type
          • Text Area (Long)
          • Picklist (Multi-Select)
          • Standard (Id)
          • Text (Encrypted)
          • Custom and Standard Lookup fields that aren’t required
          Warning
          Warning Changing the data type of the custom fields that have been entered in the static criteria formula can corrupt your account relationship data sharing rule.
           
          Loading
          Salesforce Help | Article