Sort outlook mails

Hi @Allan_Zimmermann ,
Get Mails activity is fetching the mails from in ascending order of date received. I want them in descending order. I have a process where the present incoming mail is the priority one.

Also I need to mention about my previous post Unable to spy elements in openrpa, I am able to spy the elements after hard resetting my PC and installing it again, I could not find the root cause, it might be because of my system issue.

Thanks for your time.

In the other thread about emails i see you use for each activity.
So you chould simply sort the list before using the foreach.
Using linq … In a assign you could assing the email list to it self, and add something similar to

emails.OrderBy(Function(x) x.ReceivedTime)


emails.OrderByDescending(Function(x) x.ReceivedTime)

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