This API is used to rebuilds the category hierarchy for the given list of hierarchy ids.

API

Signature

rebuildCategoryHierachiesWebService static void rebuildCategoryHierachies(List<ID> hierarchyIds)


Parameters
NameTypeRequiredDescription
hierarchyIdsList<Id>YesThe list of hierarchy ids to rebuild.


Response Data 

Void, doesn’t return any valueResponse 


Code Sample

The following sample code retrieves the list of category records for the given category IDs, rebuilds the categories, and updates the data accordingly.

public void rebuildCategories(List<Id> categoryIds)
	{
        Apttus_CPQApi.CPQWebService.rebuildCategoryHierachies(categoryIds);
	}
CODE