MCRCustCategoryHierarchy::findOrCreateCategoryHierarchy Method
Finds the category hierarchy that is associated with the product configuration or creates one if it does not exist.
Syntax
client server public static MCRCustCategoryHierarchy findOrCreateCategoryHierarchy(EcoResCategoryHierarchyName _ecoResCategoryHierarchyName, [boolean _forUpdate])
Run On
Called
Parameters
- _ecoResCategoryHierarchyName
Type: EcoResCategoryHierarchyName Extended Data Type
The category hierarchy name in the EcoResCategoryHierarchy table to retrieve if it exists.
- _forUpdate
Type: boolean
A Boolean value that indicates whether to read the record for update; optional.
Return Value
Type: MCRCustCategoryHierarchy Table
The MCRCustCategoryHierarchy record of the category hierarchy that is associated with the product configuration.