Coding Help with Desktop Outlook Activity

Hello,
I’ve designed an automation that filters through some particular emails. I’m using “Get Outlook Mail Message” activity and using desktop outlook to retrieve those emails. (I know there are more efficient ways to retrieve the emails, but this is the way I’m using it currently).
On my vdi, I noticed I had to give some time to allow outlook to load to retrieve the emails so I set outlook to open automatically and I’m using a retry scope to make sure the unread messages are coming through. (snippet of my code below)


The issue is that as a part of my automation, there may be an instance where no new (unread) messages appear and that should be documented and sent to the appropriate group to review. But the way I have it coded right now, the retry scope just throws a message and stops the automation if no new messages are present. I want it to continue after the last try in the retry scope to run through the rest of the automation to document that no emails were received during that window. Can you tell me what should be added to my code to continue after the retry scope’s last attempt at looking for unread messages? Maybe i should change my condition? Just not sure.

Hi,

If I understand your requirement correctly, the following try-catch will help you.
(Please surround your current logic by Try)

Regards,

This is a good fix. Thanks for your help!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.