Flexible Hierarchy Snapshot by Version (GET)

Get a single snapshot version of a flexible hierarchy, including its captured nodes and relationships. Use this API to load the full tree for a specific version selected from the snapshot history.

The response is centered on one captured node. Specify nodeId to load that node. If you don’t specify nodeId, the snapshot’s root node is used. Pagination and sort parameters apply to that node’s direct children.

{yourInstance} is the domain name of your Salesforce instance.

68.0

GET

Parameter NameTypeDescriptionRequired or OptionalAvailable Version
hierarchyIdStringID of the flexible hierarchy associated with the snapshot.Required68.0
versionNumberStringVersion number of the snapshot to get the snapshot details for. Specify a positive integer.Required68.0
Parameter NameTypeDescriptionRequired or OptionalAvailable Version
nodeIdStringID of the snapshot node to center on. When omitted, the snapshot’s root node is used.Optional68.0
offsetIntegerNumber of snapshot nodes to skip before returning results. The default value is 0.Optional68.0
pageSizeIntegerMaximum number of snapshot 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

Flexible Hierarchy Snapshot Response