MCRCustCategory::createHierarchyRoot Method
Creates or updates the root category node for a given category hierarchy.
Syntax
server public static MCRCustCategory 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: MCRCustCategory Table
The root category record of the MCRCustCategory table if successfully created; otherwise, an empty buffer.