n w    w w w w

baner
You are here:   Home FAQ's Webcom CPQ Approval on Product Attribute
large small default
Approval on Product Attribute
User Rating: / 0
PoorBest 

How to bring product level attribute up for approval

 In the case of a product level attribute triggering an approval. For example having a product with default attribute values, but allowing the user to override those defaults.

 To do this requires the following step

  1. create an attribute (numeric) to be set to '1' if the related attribute is set, lets call it 'ApprNeeded', it would be hidden from the user, ie 'Hidden Calculated'

  2. create the rule, trigger or calculation to set the value of 'ApprNeeded' to '1', or '0'

eg.Step3_formula

  1. Create a cart level aggregate for the 'ApprNeeded' attribute call it 'ApprCount'

eg.  Expressioin :  <*CTX( Quote.CurrentItem.Attribute(ApprNeeded).Value )*>

  1. Create an approval rule to test for the ApprCount being > 0

eg. Condition :  [GT](<*GI(ApprCount)*>,0)

This way whenever the product condition requiring approval is set the 'ApprNeeded' will be set to '1', and for each product in the cart this will be accumulated in 'ApprCount', that will trigger an approval if anything other than zero.