I want to return a warning if a user certifies phase 2 on a workflow without having certified phase 1 when using workflow channels

OSAdmin
Valued Contributor
Originally posted by Tommy Sandi

3/10/2020

I want just to return a warning if a user certifies phase 2 on a workflow without having certified phase 1 when using workflow channels. I can stop the user from doing that with an event handler and a throw XFException but that would stop the certification process, while i'd rather give the warning but still complete the certification. I suggested the use of confirmation rules as a better alternative but the customer wants popups messages. I can also throw an error in a IsBeforeEvent=False, but still that would log as an error, while it is only a warning

1 REPLY 1

OSAdmin
Valued Contributor
Originally posted by Christian Wetterwald

if you like to interrupt the process, you can throw an error like this:

Throw New Exception(""Value entered must be between 0% and 100% (e.g., for 10%, enter 0.1)."")

But the tech admins will hate it, because it is a real error message in the error log. It would be nice, to have an alternative.
What happens if you throw the error after the event is completed using:

If (...) and not args.IsBeforeEvent Then

Problem is, it might not refresh the client?