Zoomed Image

AMSX Scripting Language - Command : CreateHierarchyTempTable

Summary

Build a temp table containing all descendants of an entity in a hierarchy

Description

Traverses the specified entity hierarchy starting from one or more key IDs and writes all descendant records into a new temp table. Returns the temp table name in the result buffer. Consider using the dbo.f_ChildLocationIDs function as a lighter alternative.

Parameters

ParameterDescription
cmdTempTableName
Argument 0Entity
Argument 1Key
Argument 2Parent Key/Starting Key or 0 to build the whole hierarchy

Syntax


CreateHierarchyTempTable "TempTableName", "Entity", "Key", "Parent Key/Starting Key or 0 to build the whole hierarchy"

Return to the AMSX Command Reference