Get mail from last 24 hours

Hi team

I want to retrieve last 24 hour mails from outlook.
So how can i do it?

@Aishwarya_Bhargava - You try like this…

 "@SQL=urn:schemas:httpmail:datereceived > '" + Now.AddHours(-24).ToString("MM/dd/yyyy hh:mm")+ "'"


"[ReceivedTime] > '"+ Now.AddHours(-24).ToString("MM/dd/yyyy hh:mm")+"'"

Since my header date format is MM/dd/yyyy format, I used that format above. Please tweak it according to your format.

Hope this helps…

1 Like

it worked thankyou so much :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.