Why is OnComplete a better place than OnBefore for sending overall transform summary emails?

neerajydv11
Giga Contributor

Hi Everyone,

I wanted to understand why OnComplete is considered a better place than OnBefore for sending overall transform summary emails in ServiceNow.

  • What is the difference between OnBefore and OnComplete in the context of transform scripts?
  • Why is OnComplete preferred for sending summary or aggregated information?
  • What issues can occur if such emails are triggered from OnBefore instead?

It would be really helpful if someone could explain this with a real production example.

Thanks in advance!

0 REPLIES 0