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”) + “’”
ReceivedDateTime ge ‘2021-10-05T06:35’
Get Mail: Code: BadRequest
Message: Invalid filter clause
Any help here with this would be greatly appreciated.