Symptom
- When we have Subscription event "OnQuoteSaved" set, and when we click on the Save Quote button in the Quote, we can see the logs in the Logs page.
- But when we try to save the quote via script workbench, then there are no logs.
Environment
SAP SALES CLOUD CPQ
Reproducing the Issue
- Create a new Quote and remember the Quote#
- Open Script Workbench
- Type QuoteHelper.Get(<YourRemeberedQuote#>).Save()
- Open Logs page.
No Event is present - Go back to Quote
- Use "Save Quote" Button
- Go back to Logs
Event is present.
Cause
Happening as per design.
Resolution
- In Quote 2.0, this is as per design.
- So the subscription event doesn't work with scripting.
- For Quote 2.0 engine it is not possible to execute actions as part of workflow.
- We have corresponding actions i.e. Save, Copy, Reassign, but from scripting they are working outside of workflow, meaning there are no checks if they can be executed, no notifications are triggered.
Keywords
Quote 2.0, as per design, default behaviour, subscription event, scripting, OnQuoteSaved Event, trigger , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , Problem
Product
SAP CPQ all versions