SAP Knowledge Base Article - Public

3472638 - Quote 2.0 - OnQuoteSaved Event not triggering when saving via Scripting


  • 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.



Reproducing the Issue

  1. Create a new Quote and remember the Quote#
  2. Open Script Workbench
  3. Type QuoteHelper.Get(<YourRemeberedQuote#>).Save()
  4. Open Logs page.
    No Event is present
  5. Go back to Quote
  6. Use "Save Quote" Button
  7. Go back to Logs
    Event is present.


Happening as per design.


  • 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.


Quote 2.0, as per design, default behaviour,  subscription event, scripting, OnQuoteSaved Event, trigger , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , Problem


SAP CPQ all versions