Create Hierarchy Types
A hierarchy type defines a structural schema for your data. Define this schema first, as it provides the framework to build a flexible hierarchy. Create a hierarchy type by specifying the nodes, and the relationships between these nodes.
Required Editions
Available in: Lightning Experience Available in: Unlimited and Agentforce Editions |
| User Permissions Needed | |
|---|---|
| To create a hierarchy type: | Flexible Hierarchy Admin AND Customize Application AND View Setup and Configuration |
- From Setup, in the Quick Find box, enter Flexible Hierarchies, and select Flexible Hierarchy Setup.
- Click New.
-
Select a graph template, and click Create Graph.
- Default Templates: Included in your Salesforce org.
- Custom Templates: Created by you.
- Installed Templates: Created by a third party.
-
Enter the label, description, and the developer name.
Review these considerations when creating a hierarchy type.
- To save the graph configuration as a custom template to use later, turn on Set as Template.
-
To create and configure nodes:
- In the Node Definitions section, click New.
-
In the Properties tab, select an object. You can select any of these objects as
nodes.
Account, Branch Unit, Case, Contact, Financial Account, Financial Deal, Insurance Policy, Opportunity, PartyRelationshipGroup, Product2, and any custom object.
-
To select the fields to be considered for this object, click the
Display tab, and select the fields to show in both the Graph and Grid
views.
You can select up to 2 fields to show in the Graph view. You can select up to 25 fields to show in the Grid view.
-
To configure an account node in a hierarchy to show all contacts, including direct and
indirect contacts, select Show Contacts in Graph View.
An account's contact network includes direct and indirect contacts. Direct contacts have a primary relationship with the account, while indirect contacts belong to other accounts but still influence the relationship. See Flexible Hierarchies Overview.
-
To create node relationship definitions:
Define relationships only for objects where a corresponding Junction object is available. For example, to define the relationship between the Account and Contact objects, the Account-to-Contact junction object is required.
- In the Node Relationship Definitions section, click New.
- Select a parent, and a child node object.
- Select a junction object.
- Select a parent lookup field.
- Select a child lookup field.
- Select a relationship name field.
- Configure summary rollup metrics according to your business requirements.
- Save the changes.
Did this article solve your issue?
Let us know so we can improve!
