Configure Price Quote (CPQ) CPQ for SOAP API Developers API Reference CPQ Admin Web Service Current: Retrieves List of Category IDs PDF Download PDF Download page Retrieves List of Category IDs. Current page All pages Retrieves List of Category IDs You can use this API to retrieve the list of category Ids that are associated with the given product.APISignaturegetCategoryIdswebService static List getCategoryIds(String productId)Request ParameterNameTypeDescriptionproductIdStringThe Id product for which you want to retrieve the category.Response ParameterNameTypeDescriptioncategoryIdsListThe list of category Ids Code SampleThe below sample code retrieves the category associated with the given product. public void getCategoryIDs(String productName) { List<ID> categoryIds; // retrieve the productSO Product2 productSO = [SELECT Id, Name FROM Product2 WHERE Name = :productName LIMIT 1]; // retrieve associated category ids categoryIds = Apttus_Config2.CPQAdminWebService.getCategoryIDs(productSO.Id); retrun ategoryIds; } CODE ×