Product Administration Guide > Customizable Product Scripts >

GetObjQuantity Method

This method returns the quantity of the specified component product in the current solution.


GetObjQuantity (ProdName) as Integer



String. The name of the component product. Use product name syntax to identity the component product.


Can be used only for component products within the customizable product.


Quantity of the component product in the current solution as an integer. If multiple instances of the component exist, the quantity of all instances are added together and the sum is returned. For example if there are two instances of an item one with quantity five and the other with quantity three, the return is eight.


This script fragment obtains the quantity of 10 GB Drive (vendor = Sony) in the current solution and assigns it to the variable iItemQty.

Dim iItemQty as Integer

iItemQty = GetObjQuantity("{10 GB Drive; Sony}")

Product Administration Guide