I have a robot that runs automatically every day, I want it to send me a message to the outlook saying if the process has been executed correctly or if there has been any failure, so I don’t have to be looking at it. I suppose I have to do it with an “if else” but I don’t know how.
@jack.chan I can’t do the assign because I created the variable in the Main and the argument is in another workflow. So the variable assigned to that asset, which is “MailsList” does not appear in the list of my variables.
Here you can use some flag values. Use Try catch activity.
In the try stage, initially set the value for eg: status="False"And at the end of the Try, set the value as “Success” . Then in the finally stage of Try catch you check the status of Status, if it “Success”, then send the email using Send Outlook mail message.