Loading
The Trailblazer Community is now read-only Read More
Create Hierarchy Types

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

  1. From Setup, in the Quick Find box, enter Flexible Hierarchies, and select Flexible Hierarchy Setup.
  2. Click New.
  3. 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.
  4. Enter the label, description, and the developer name.
    Review these considerations when creating a hierarchy type.
  5. To save the graph configuration as a custom template to use later, turn on Set as Template.
  6. To create and configure nodes:
    1. In the Node Definitions section, click New.
    2. 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.
    3. 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.
    4. 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.
  7. 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.
    1. In the Node Relationship Definitions section, click New.
    2. Select a parent, and a child node object.
    3. Select a junction object.
    4. Select a parent lookup field.
    5. Select a child lookup field.
    6. Select a relationship name field.
  8. Configure summary rollup metrics according to your business requirements.
  9. Save the changes.
 
Loading
Salesforce Help | Article