I need help with Odata query in get mail activity

Hi All,

I need to get emails from an outlook inbox with an exact recieved date time. I’ve been using this query “from/emailAddress/address eq '”+mensaje.SenderEmailAddress+“’ and subject eq '”+ mensaje.Subject+"’ and IsRead eq true and receivedDateTime eq "+TimeZoneInfo.ConvertTimeToUtc(mensaje.ReceivedTime).ToString(“yyyy-MM-ddTHH:mm:ssZ”) but it dosnt return anything. When I try using the ge operator it returns the email, but i need to make the query with the eq operator. What should I do?

Hi @agonzalez.pascual,

You wrote:

Can you try this please?

receivedDateTime eq (apostrophe)(double quote) + TimeZoneInfo… + (double quote)(apostrophe)(double quote)

receivedDateTime eq ‘"+TimeZoneInfo.ConvertTimeToUtc(mensaje.ReceivedTime).ToString(“yyyy-MM-ddTHH:mm:ssZ”) + "’"

And make sure your double quotes look like this " instead of this ”
And your apostrophes look like this ’ instead of this ‘

Thanks