Symptom
Attribute value deselection for "User Selection" attributes in SAP CPQ are not being sent to SAP VC if the changes are made via script, resulting in the values not being updated.
Environment
SAP SALES CLOUD CPQ integrated with VC
Reproducing the Issue
-
Open a quote in SAP CPQ and configure a product
-
Open the scripting workbench.
-
Execute the following Python code:
A = Product.Attributes.GetBySystemId('AttributeSystemID')
check = A.SelectedValue
A.SelectedValue.IsSelected = False
check2 = A.SelectedValue
Product.ApplyRules()
Other codes that deselect the attribute value can be used and result will be similar.
Cause
Bug in the application.
Resolution
Issue will be fixed as part of 2511 release.
The workaround is to use cpservices/api/v2/externalConfigurations endpoint to reset whole configuration.
Keywords
CPQ, VC, deselect, attribute, value, script, update, user, selection, configurator, request, response, CPS , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , Known Error
SAP Knowledge Base Article - Public