Skip to Content
Oct 14, 2021 at 07:50 AM

How to set selected values of an attribute dynamically on Sap CPQ script?



There is a method on CPQ scripting "SelectValues". I would like to use is but I count figure out how to set values dynamically.

Product.Attr('Test').SelectValues(True, '12', '15', '13')

I tried below code but didn't work;

a = '12','15','13'
Product.Attr('Test').SelectValues(True, a )

It would have been great if the method takes values as array list.

Anybody knows how to achive this?

Best regards.