You need to sign in to do that
Don't have an account?
Nick Sauer 9
CPQ - Read Quote API - Get Uncommitted Changes from UI
Scenario is when we are in the QLE and change field A....
Then we use read Quote API -> as expected, this does not consider changes that are not yet saved, and the QuoteModel is just comprised of the current database version of the record.
SBQQ.QuoteLineEditorController has some global methods, including Save, but nothing that gives access to pending changes (that I can see).
There are some other candidate classes in the managed package but without global methods.
Is there some trick to programmatically collect and save the record while in the QLE itself? Or is there some other way to trigger Quick Save (for example), without user interaction, prior to launch of a custom action? I am probably missing something obvious here, and hoping someone has done this before!
Then we use read Quote API -> as expected, this does not consider changes that are not yet saved, and the QuoteModel is just comprised of the current database version of the record.
SBQQ.QuoteLineEditorController has some global methods, including Save, but nothing that gives access to pending changes (that I can see).
There are some other candidate classes in the managed package but without global methods.
Is there some trick to programmatically collect and save the record while in the QLE itself? Or is there some other way to trigger Quick Save (for example), without user interaction, prior to launch of a custom action? I am probably missing something obvious here, and hoping someone has done this before!
You can reach out to Salesforce Revenue Cloud page on https://trailhead.salesforce.com/trailblazer-community/groups/0F93A0000009TGxSAM?tab=discussion&sort=LAST_MODIFIED_DATE_DESC for better visibility and inputs on your ask.
If this information helps, please mark the answer as best. Thank you
I checked with my team and have these inputs.
The only way you can access the current quote model data is in a QCP(https://developer.salesforce.com/docs/atlas.en-us.cpq_dev_plugins.meta/cpq_dev_plugins/cpq_dev_jsqcp_parent.htm).
You could take the quote model and send it to an apex rest API and do what you want from there, but I question the validity of the use case of doing a save every time you click calculate. If you want that just put quick save as the only available custom action.
See: https://developer.salesforce.com/docs/atlas.en-us.cpq_dev_api.meta/cpq_dev_api/cpq_quote_api_save_final.htm
Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you