The GetOutlookMailMessages activity gets emailwithin the time range

Hello,guys.
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 ‘someone@company.com’”
“subject eq ‘Office365 Quickstart’”
“subject eq ‘Office365 Quickstart’ and from/emailAddress/address eq ‘someone@company.com’”
“categories/any(a:a+eq+‘Red+category’)”

Hope will be helpful.

Thanks in advance,
Jayavignesh G

@1585517965

Please try this

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

Cheers

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

@1585517965

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

Cheers

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