SAP Knowledge Base Article - Public

3731132 - User custom field set via script not persisted to database or user section

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

  1. Create a user custom field
  2. Run: User.GetUserCustomFieldByName('<CustomFieldName>').Content = <Value>
  3. Check the user custom field in setup; the value does not appear and is not in the database
  4. Run: User.GetUserCustomFieldByName('<CustomFieldName>').Content, it returns the previously set value in the current session
  5. 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