Fetch oldest first emails using getoutlookmailmessage

This is not a question rather a solution-

To fetch emails from bottom up in outlook, what I did was-

Read maximum number of emails using getoutlookmailmessage activity

reverse those mails using invoke method “Reverse”

using For Each loop - Type argument system.net.mail.mailmessage

and in Value field mailmessage output variable.getrange

ie.

Screenshot from 2021-01-09 22-30-16

0 will get the bottom email (Last email in inbox)

10 is the range of emails to read

I hope this helps… :slight_smile:

5 Likes

Hi @anand.karangutkar,
Nice solution. Let me push it to Tutorials category :slight_smile:

1 Like

Cool… Thanks… :slight_smile:

1 Like