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?
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 ‘email@example.com’”
“subject eq ‘Office365 Quickstart’”
“subject eq ‘Office365 Quickstart’ and from/emailAddress/address eq ‘firstname.lastname@example.org’”
Hope will be helpful.
Thanks in advance,
Please try this
"[Received] >= '" + Date_Data.ToString("d") + " 00:00AM'"
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
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.