you may use DASL query to filter your emails. Here is the expression:
“@SQL=”“urn:schemas:httpmail:fromemail”" = ‘xyz@abc.com’ AND urn:schemas:httpmail:subject LIKE ‘%Bill%’ AND urn:schemas:httpmail:datereceived >= ‘" & Date.Today.ToString(“dd-MMM-yyyy”) & "’"
Can you please try this it should work with O365 Get Mail
"from/emailAddress/address eq ’ xyz@abc.com’ and contains(subject, ‘Bill’) and receivedDateTime eq " + DateTime.Now.ToString(“yyyy-MM-dd”)
Can you please try this and let me know if it works
"from/emailAddress/address eq 'xyz@abc.com' and contains(subject, 'Bill') and receivedDateTime ge " + DateTime.Now.ToString("yyyy-MM-dd") + "T00:00:00Z and receivedDateTime le " + DateTime.Now.ToString("yyyy-MM-dd") + "T23:59:59Z"
Hi @rashmisingh2695
Thanks for reply .
I even know the mail time it is fixed …
2am till 4.30am and today’s email only …
And bot will run at 4am . Ideally mail will receive 4.05 am.
In that case you can try to modify the time like below
"from/emailAddress/address eq 'xyz@abc.com' and contains(subject, 'Bill') and receivedDateTime ge '" + DateTime.Now.ToString("yyyy-MM-dd") + "T02:00:00Z' and receivedDateTime le '" + DateTime.Now.ToString("yyyy-MM-dd") + "T04:30:00Z'"