Forum Discussion

Abdulrahman_Shahin's avatar
2 years ago
Solved

Need Guidance: Prevent On Close Server Event to get called when there is Error (when voting) and the CM Activity is not Closed?

Hello All, I'm creating a server-side method that sends an email to the Change Leader. It gets invoked "on close" in association with a Change Management workflow activity. The email should be sent...
  • AngelaIp's avatar
    2 years ago

    Hi Abdu,

    I am not very familiar with the "on close" events. But you could try an "on Activate" event on the next Workflow state. I always use this variant when validating something before users can proceed. If the Method is aborted, the workflow state will not become active.

    Do you use a custom server Method for the email on purpose? Couldn´t you use the integrated Notification options? 

    Best regards!

    Angela