Applying Constraint Rule to Bundles Added to the Cart
You use this API to apply constraint rules to the bundles you added to the cart.
API |
Signature |
---|---|
applyConstraintRulesOnAddBundle |
webService static Apttus_Config2.ConstraintWebService2.ConstraintResult2 applyConstraintRulesOnAddBundle(Id cartId, Decimal lineNumber) |
Parameters |
||
---|---|---|
Name |
Type |
Description |
cartId | Id |
The Id of the cart you added products to. |
lineNumber | Decimal |
The line number of the bundle added to the cart |
Response Parameter - Apttus_Config2.ConstraintWebService2.ConstraintResult2 |
||
---|---|---|
Field |
Type |
Description |
IsSuccess | Boolean |
Indicates whether the CPQ successfully applied the constraint rule |
Code Sample
The sample below enables you to apply a constraint rule to the bundle line item in the given cart.