SAP Knowledge Base Article - Public

3345765 - Not able to alter the Order Custom Field permission via REST API for newly created Order Status

Symptom

Not able to alter the Order Custom Field permission via REST API for newly created Order Status. 

Environment

SAP SALES CLOUD CPQ

Reproducing the Issue

  1. Create a quote custom field;
  2. Call GET /api/quote/v1/quoteCustomField/{quoteCustomFieldId}/permissions to verify the custom field has all permissions generated;
  3. Create a new Order Status;
  4. Call GET /api/quote/v1/quoteCustomField/{quoteCustomFieldId}/permissions to verify the custom field does not have permissions generated for newly added Order Status;
  5. Call POST /api/quote/v1/quoteCustomField/{quoteCustomFieldId}/permissions to set permissions for newly added Order Status:[ { "userTypeId": {anyUserTypeId}, "orderStatusId": {newlyAddedOrderStatusId}, "value": "Editable" } ];
  6. Check that if not passing Permission ID, API do not work.

Cause

Expected Behavior.
Only updating existing permission is allowed via this endpoint.

Resolution

Customer should set permissions first in the UI to be able to modify through API call. 

Keywords

Quote Custom Field, Permission, QCF, Workflow, Order Status, CPQ , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , Bug Filed

Product

SAP CPQ 2023