How Can I read the email for certain date (like today or yesterday)?

Could anybody tell me how I can ask uipath studiox to read outlook’s unread emails by certain date?

u can filter the mails in peoperty panel by checking the property unread mails. while looping mails for certain date u can apply an if condition.
mailItem.Headers(“Date”) for date manipulation

1 Like

Thank you. I will try that out.

@Gary_Guo - in get outlook activity -> Filter property-
“[ReceivedTime] >= '”+now.AddDays(-1).Date.ToShortDateString+"’ AND [ReceivedTime] <= ‘"+now().Date.ToShortDateString+"’"

1 Like