Flexible Hierarchy by ID (GET)
Get the details of a node in a flexible hierarchy, including its child nodes, ancestor nodes, and the relations between them.
The response is centered on one context node. Specify nodeId to load that node. If you don’t specify nodeId, the hierarchy’s root node is used. Pagination and sort parameters apply to that node’s direct children.
Resource
1 /connect/flexible-hierarchies/{hierarchyId}
Resource Example
1 https://{yourInstance}.salesforce.com/services/data/v68.0/connect/flexible-hierarchies/0_H1XX0000004_FH1_EAM
{yourInstance} is the domain name of your Salesforce instance.
Available Version
68.0
HTTP Methods
GET
Path Parameters for GET
Parameter Name Type Description Required or Optional Available Version hierarchyIdString ID of the flexible hierarchy to get the node details for. Required 68.0
Query Parameters for GET
Parameter Name Type Description Required or Optional Available Version contextString Viewer context that determines which fields are returned. Valid values are: graph and grid. The default value is graph. Optional 68.0 nodeIdString ID of the flexible hierarchy node to center on. When omitted, the hierarchy’s root node is used. Optional 68.0 offsetInteger Number of child nodes to skip before returning results. The minimum value is 0. The default value is 0. Optional 68.0 pageSizeInteger Maximum number of child nodes to return on a page. The minimum value is 1. The default value is 20. Optional 68.0 sortFieldString Field to sort the child nodes by. Optional 68.0 sortOrderString Order of sorting the child nodes. Valid values are: asc and desc. The default value is asc. Optional 68.0
Response Body for GET
Flexible Hierarchy Node Details Response