Symptom
- When a custom dictionary is selected in the User Page and the script is run in the script workbench, the result points to the original dictionary from which it was inherited, instead of the custom dictionary name.
- The issue occurs when using the Trace.Write(User.SelectedDictionary.Name) code.
- The expected output is the custom dictionary name, but the actual output is the original dictionary name.
Environment
SAP Sales Cloud CPQ
Reproducing the Issue
- Go to User Menu icon and open User Page, and select any custom dictionary.
- Open the script workbench and run the code: Trace.Write(User.SelectedDictionary.Name)
- The output will not display the custom dictionary name.
Cause
The issue arises because the current IronPython property returns the selected language and dictionary related to the selected language, not the actual selected custom dictionary. The property name is misleading, leading to confusion.
Resolution
The solution is to introduce a new scripting property for the default dictionary, while the existing property "User.SelectedDictionary.Name" shows the selected dictionary under User Page.
This solution is expected to be implemented in the 2508 release, tentatively.
See Also
3487591 - Known Issues in SAP CPQ
Keywords
SAP CPQ, Custom Dictionary, User Preferences, Script Workbench, IronPython Property, Selected Dictionary, Misleading Property Name. , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , Problem