Product Administration Guide > Customizable Product Scripts >
This method returns the row ID of the product root in the source object, such as the quote or order. The row ID of the product root will be different for each quote or order.
GetInstanceId() as String
Returns the row ID of the customizable product root.