Retrieves List Product IDs
You can use this API to retrieve the list of product Ids for the given product name.
API |
Signature |
---|---|
getProductIds |
webService static List getProductIds(String productName) |
Request Parameter |
||
---|---|---|
Name |
Type |
Description |
productName | String |
The name product for which you want to retrieve the product Ids. |
Response Parameter |
||
---|---|---|
Name |
Type |
Description |
productId | List<String> |
The list of product Ids. |
Code Sample
The below sample code retrieves the product Ids of a given product name.
public List<Id> getParentProducts(String productName) {
// retrieve product IDs
List<ID> productIds = Apttus_Config2.CPQAdminWebService.getProductIds(productName);
return productIds;
}