The GetOutlookMailMessages activity gets emailwithin the time range

In UiPath, for the “GetOutlookMailMessages” activity, I have a date variable called date_data that has a value of “06/11/2023”. How do I retrieve all emails from this date variable until today?

Hi @1585517965,

You can use the Query field of GetEmail activity to fetch/get the particular date.
Basically, Query used for filtering the returned emails. If the query is not completed, all emails are returned. Enter your String using the $filter OData query parameter. Below are some example inputs:
“from/emailAddress/address eq ‘’”
“subject eq ‘Office365 Quickstart’”
“subject eq ‘Office365 Quickstart’ and from/emailAddress/address eq ‘’”

Hope will be helpful.

Thanks in advance,
Jayavignesh G


Please try this

"[Received] >= '" + Date_Data.ToString("d") + " 00:00AM'"


Thank you for your answer, I have implemented it using this method.


Enddate is not needed as it is today …you wanted all the mails that are receiced today as well right…so should work with only start date condition also

Happy Automation


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