Symptom
When setting a user custom field via script (for example: User.GetUserCustomFieldByName('<CustomField>').Content = <Value>), the operation runs but the value is not saved to the database or visible in the setup/user custom field page.
Environment
SAP SALES CLOUD CPQ
Reproducing the Issue
- Create a user custom field
- Run: User.GetUserCustomFieldByName('<CustomFieldName>').Content = <Value>
- Check the user custom field in setup; the value does not appear and is not in the database
- Run: User.GetUserCustomFieldByName('<CustomFieldName>').Content, it returns the previously set value in the current session
- Log out and log back in and check that the value is no longer retrievable.
Cause
Bug.
Resolution
- Issue: User.GetUserCustomFieldByName('<value>').Content not storing value on database nor in session
- ETA for Fix: CPQ-2608
- Workaround: Manipulate field through UI in Setup.
See Also
Keywords
User Custom Field, Script, Persistence, CPQ , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , Known Error
Product
SAP CPQ 2024
SAP Knowledge Base Article - Public