I have a SharePoint workflow with a SendEmail
activity. I use the MethodInvoking
event handler to set the To
property.
However, sometimes the workflow should not try to send an e-mail, because there is no e-mail address. I can detect such a condition in the MethodInvoking
event handler. Is it possible to skip the SendEmail
activity and proceed to the next one?
I know I can put IfElseActivity
before SendEmail
, but I am looking for a way to cancel activity execution.