How to read email backward follow number day (manual key) until today

I want to Read email backward by number of key days.

Example. I key manual days = 3

1 .I want to read email the day before yesterday
2. read email yesterday
3. read email today.

Please guide me about it.


If you are using Outlook as email client, you can get the day of a year for a specific email by using DateValue(item.Headers("Date")).DayOfYear, then you can compare with the current day minus your manual key

Best regards,

@fairymemay After Get outlook mail activity perform a reverse method on the mail message collection using Assign activity

@Marius_Puscasu @Arpit_Kesharwani I don’t understand about flow.
If input dialog = 3
Today = 21/01/2021
I want to read between 19/01/2021 - 21/01/2021

Please guide me about it.

Hi @fairymemay,

For instance, for the input dialog = 3 & today = 21/01/2021, the condition can be read as: 21-3 > mail date ==> 18 >mail date

Hence, if the mail date is greater than 18 then you are reading the emails, while if
the you are performing the activities from Else section

The workflow shown within your print screen seems to be correct. By using it, you should be able to read the emails from the last 3 days (your manual key)

Best regards,

If it doesn’t bother you , Please send file your workflow to me.