Hi,
Have scanned every resource I know - and both UiPath and MS documentation I feel somewhat lacking here - how do I use the query/filter here to get emails from last x number of hours?
All I can find is hard coded days/dates which people have given as solutions (which are useless) and converting those over to variables just gives a string of errors even though using a log message to print the query beforehand shows it looking exactly like their hard coded lines.
“ReceivedDateTime ge '” + datetime.Now.AddHours(-6).tostring(“yyyy-MM-ddTHH:mm”) + “'”
prints as:
ReceivedDateTime ge ‘2021-10-05T06:35’
Get Mail: Code: BadRequest
Message: Invalid filter clause
Inner error:
AdditionalData:
date: 2021-10-05T16:44:38
…
Any help here with this would be greatly appreciated.
Thanks!