Flexible Hierarchy Node Details Response

Output representation of a flexible hierarchy node, including its child nodes, ancestor nodes, the relations between them, and the hierarchy configuration.

JSON Example 

1{
2  "hierarchyConfiguration": {
3    "id": "06Jxx0000004C92EAE",
4    "name": "Global Account Hierarchy",
5    "viewerContext": "graph",
6    "entityDisplayFields": [
7      {
8        "entityName": "Account",
9        "fieldsToDisplay": [
10          "Name",
11          "BillingCity"
12        ],
13        "showRelatedContacts": false
14      }
15    ],
16    "relationshipList": [
17      {
18        "parentNodeEntityApiName": "Account",
19        "childNodeEntityApiName": "Account"
20      }
21    ],
22    "summaryRollupList": [
23      {
24        "metricName": "Credit",
25        "metricDescription": "",
26        "nodeMeasureType": "Credit",
27        "isPrimaryMetric": true
28      }
29    ],
30    "isActive": true,
31    "isRuleBased": false,
32    "displayOrder": []
33  },
34  "contextNode": {
35    "id": "0HNxx0000004N02EAM",
36    "role": "Region",
37    "extensionEntityFields": [],
38    "referenceRecord": {
39      "entityType": "Account",
40      "fields": [
41        {
42          "fieldName": "Name",
43          "fieldValue": "EMEA Region"
44        },
45        {
46          "fieldName": "BillingCity",
47          "fieldValue": "London"
48        }
49      ]
50    },
51    "summaries": [
52      {
53        "nodeMeasureType": "Credit",
54        "nodeMeasureUnit": "Currency",
55        "nodeValue": 1000000.0,
56        "childAggregateValue": 2500000.0,
57        "totalValue": 3500000.0,
58        "lastModifiedDate": "2026-01-15T10:30:00.000Z"
59      }
60    ],
61    "totalChildrenCount": 2
62  },
63  "pathToRoot": [
64    "0HNxx0000004N01EAM",
65    "0HNxx0000004N02EAM"
66  ],
67  "pagination": {
68    "hasNext": false,
69    "offset": 0,
70    "pageSize": 20,
71    "totalChildNodes": 2
72  },
73  "childNodes": [
74    {
75      "id": "0HNxx0000004N03EAM",
76      "role": "Subsidiary",
77      "extensionEntityFields": [],
78      "referenceRecord": {
79        "entityType": "Account",
80        "fields": [
81          {
82            "fieldName": "Name",
83            "fieldValue": "Acme UK Ltd"
84          },
85          {
86            "fieldName": "BillingCity",
87            "fieldValue": "Manchester"
88          }
89        ]
90      },
91      "summaries": [
92        {
93          "nodeMeasureType": "Credit",
94          "nodeMeasureUnit": "Currency",
95          "nodeValue": 1500000.0,
96          "childAggregateValue": 0.0,
97          "totalValue": 1500000.0,
98          "lastModifiedDate": "2026-01-15T10:30:00.000Z"
99        }
100      ],
101      "totalChildrenCount": 0
102    },
103    {
104      "id": "0HNxx0000004N04EAM",
105      "role": "Subsidiary",
106      "extensionEntityFields": [],
107      "referenceRecord": {
108        "entityType": "Account",
109        "fields": [
110          {
111            "fieldName": "Name",
112            "fieldValue": "Acme France SAS"
113          },
114          {
115            "fieldName": "BillingCity",
116            "fieldValue": "Paris"
117          }
118        ]
119      },
120      "summaries": [
121        {
122          "nodeMeasureType": "Credit",
123          "nodeMeasureUnit": "Currency",
124          "nodeValue": 1000000.0,
125          "childAggregateValue": 0.0,
126          "totalValue": 1000000.0,
127          "lastModifiedDate": "2026-01-15T10:30:00.000Z"
128        }
129      ],
130      "totalChildrenCount": 0
131    }
132  ],
133  "childRelations": [
134    {
135      "id": "0HRxx0000004R02EAM",
136      "predecessorId": "0HNxx0000004N02EAM",
137      "successorId": "0HNxx0000004N03EAM"
138    },
139    {
140      "id": "0HRxx0000004R03EAM",
141      "predecessorId": "0HNxx0000004N02EAM",
142      "successorId": "0HNxx0000004N04EAM"
143    }
144  ],
145  "ancestorNodes": [
146    {
147      "id": "0HNxx0000004N01EAM",
148      "role": "Global Parent",
149      "extensionEntityFields": [],
150      "referenceRecord": {
151        "entityType": "Account",
152        "fields": [
153          {
154            "fieldName": "Name",
155            "fieldValue": "Acme Corporation"
156          },
157          {
158            "fieldName": "BillingCity",
159            "fieldValue": "San Francisco"
160          }
161        ]
162      },
163      "summaries": [
164        {
165          "nodeMeasureType": "Credit",
166          "nodeMeasureUnit": "Currency",
167          "nodeValue": 5000000.0,
168          "childAggregateValue": 3500000.0,
169          "totalValue": 8500000.0,
170          "lastModifiedDate": "2026-01-15T10:30:00.000Z"
171        }
172      ],
173      "totalChildrenCount": 1
174    }
175  ],
176  "ancestorRelations": [
177    {
178      "id": "0HRxx0000004R01EAM",
179      "predecessorId": "0HNxx0000004N01EAM",
180      "successorId": "0HNxx0000004N02EAM"
181    }
182  ]
183}

Properties 

Property NameTypeDescriptionFilter Group and VersionAvailable Version
ancestorNodesFlexible Hierarchy Node Details[]Details of the ancestor nodes in the path from the root node to the context node.Big, 68.068.0
ancestorRelationsFlexible Hierarchy Node Relation Details[]Details of the relations between the ancestor nodes in the path from the root node to the context node.Big, 68.068.0
childNodesFlexible Hierarchy Node Details[]Details of the child nodes of the context node on the current page.Big, 68.068.0
childRelationsFlexible Hierarchy Node Relation Details[]Details of the relations between the context node and its child nodes on the current page.Big, 68.068.0
contextNodeFlexible Hierarchy Node DetailsDetails of the context node. This node is the node specified in the nodeId query parameter, or the root node if nodeId isn’t specified.Big, 68.068.0
hierarchyConfigurationFlexible Hierarchy Configuration DetailsConfiguration of the flexible hierarchy, such as the fields to display for each entity, based on the context query parameter.Big, 68.068.0
paginationFlexible Hierarchy Pagination DetailsPagination details of the child nodes on the current page.Big, 68.068.0
pathToRootString[]Path from the root node to the context node, in the format RootNodeId, ..., GrandparentNodeId, ParentNodeId, ContextNodeId.Big, 68.068.0