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 

1https://{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 NameTypeDescriptionRequired or OptionalAvailable Version
hierarchyIdStringID of the flexible hierarchy to get the node details for.Required68.0

Query Parameters for GET 

Parameter NameTypeDescriptionRequired or OptionalAvailable Version
contextStringViewer context that determines which fields are returned. Valid values are: graph and grid. The default value is graph.Optional68.0
nodeIdStringID of the flexible hierarchy node to center on. When omitted, the hierarchy’s root node is used.Optional68.0
offsetIntegerNumber of child nodes to skip before returning results. The minimum value is 0. The default value is 0.Optional68.0
pageSizeIntegerMaximum number of child nodes to return on a page. The minimum value is 1. The default value is 20.Optional68.0
sortFieldStringField to sort the child nodes by.Optional68.0
sortOrderStringOrder of sorting the child nodes. Valid values are: asc and desc. The default value is asc.Optional68.0

Response Body for GET 

Flexible Hierarchy Node Details Response