Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

Finds which child resources belong to a particular parent resource.

...

Info

This supports going multiple layers deep into the hierarchy. So for example if you have countries with locations with buildings with rooms, allows you to find all rooms in a particular country.

Note

...

This does not support non-resource dimensions. We might still add support for this at a later stage, which is why the class is named DimensionHierarchy instead of ResourceHierarchy.

Methods

Expand
titlegetDescendants

Description

This method takes a list of parent resource ids, and an optional list of resource type ids. It returns all the children of the parents.

Signature

Code Block
global static B25.DimensionHierarchy.Result getDescendants(B25.DimensionHierarchy.Context)

Parameters

Code Block
B25.DimensionHierarchy.Context

An instance of B25.DimensionHierarchy.Context. This class wraps the input parameters: a list of parent resource ids, and an optional list of resource type ids.

Return Type

Code Block
B25.DimensionHierarchy.Result

An instance of B25.DimensionHierarchy.Result. This contains a list of ids of all the children of the input parents.

...