Exit from Workflow Using If Statement

Hi Everyone,

I am reading emails from Outlook. if the Count is not Greater than 1 want to exit from work flow. If i throw an Exception get the Message but want to End Process. Any Suggestions

Thank you

1 Like

in else , don’t use any throw activity .

hope this help

Buddy @veerendrakumar

  1. Use get outlook mail activity to read the mails and assign the output variable as out_mailmessages of mailmessage Datatype
  2. Use a if condition like
    Out_mailmessages.count = 0
    In then part exit the process
    If its not equal to zero continue your process with else part with activities you want

Hope this would help you buddy