Symptom
There seems to be no option to change the Editability of a Quote Item Custom field or of Quote Custom field in Quote 2.0 engine tenants, via scripting.
Environment
SAP CPQ
Resolution
- CPQ doesn't support changing the QICF's (Quote Item Custom Field) editability via scripting in both Quote 1.0 and 2.0 engines.
- But it is indeed possible to change the editability of custom field in Quote 2.0 engine.
- Note: In order for this to work, the script including this code below should be attached to "Before quote rendering" Event as a global script.
- This is the code snippet example of how it should be done for Quote Custom Field:
-
from Scripting.Quote import AccessLevel
context.Quote.GetCustomField("<CF_Name>").AccessLevel = AccessLevel.Editable
-
- Please Note: If the editability option for QICFs via scripting is required, then please submit an enhancement request from the Influence portal.
Keywords
Quote Custom Field, Quote Item Custom field, Quote 2.0 tenant, Custom Field, QICF, editable, editability, Before quote rendering Event, Event trigger, global script, context.Quote, AccessLevel, code snippet, import, Scripting.Quote, limitation, enhancement request, via scripting, ironpython, python , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , How To
Product
SAP CPQ all versions
SAP Knowledge Base Article - Public