EcoResCategory::createHierarchyRoot Method
Creates or updates the root category node for a given category hierarchy.
Syntax
server public static EcoResCategory createHierarchyRoot(EcoResCategoryHierarchyId _ecoResCategoryHierarchyId, [EcoResCategoryName _ecoResCategoryName])
Run On
Server
Parameters
- _ecoResCategoryHierarchyId
Type: EcoResCategoryHierarchyId Extended Data Type
The category hierarchy ID for which to retrieve in the EcoResCategoryHierarchy table.
- _ecoResCategoryName
Type: EcoResCategoryName Extended Data Type
The root category name to be created in the specified category hierarchy.
Return Value
Type: EcoResCategory Table
The root category record of the EcoResCategory table if successfully created; otherwise, an empty buffer.