How to Filter Get Outlook Mail Message by Time


I am currently trying to build a small bot to save some attachments from outlook email received in the past 12 hours. The issue is that the emails are received around midnight ± a few hours and therefore I cannot filter for emails from today’s date or a specific date or time. I want to be able to use a syntax in the get outlook mail message which allows me to run the bot as scheduled and from whatever time it runs, it picks up all emails from the past 12 hours. Does anyone have a syntax which would work in this situation? Thank you

Hey @Z.A_Khan

Please refer this topic and check whether it helps.


Hi welcome to the community!
If you have a lot of emails, to prevent the robot from bringing them all to the process and afterwards filtering them, you can work with the filter in the activity like this: