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.
put your process in try-catch statement (so it can also handle unhandled exceptions). at the end of try catch use if-else , if success status = “success”, otherwise status=“Failed”
it says your recipient list is empty, did you use “get asset” before? and output the result of “Get asset” to in_outlook? , also in_outlook should be a string, not an array of string
@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.