@Shubham_Varshney You can use the Get Outlook Mail Messages without a Filter to get the number of mails required. Then you can use a Query in an assign Activity to Keep only the mails that match your requirement in the following way :
mailMessages = mailMessages.Where(Function(x)x.Headers(“Date”).ToString.Contains(“yourDateValue”) and x.Subject.Equals(“yourSubjectValue”) and x.Sender.ToString.Contains(“yourSenderEmailValue”)).ToList
Where mailMessages is the Output of Get Outlook Mail Messages.
Note : The Date format it follows is probably “MM/dd/yyyy HH:mm:ss”. You should provide your value accordingly.
@Shubham_Varshney The below Filter seems to have worked for me :
Please check it and revert back if found any error.
"@SQL=(""urn:schemas:httpmail:subject"" like '%"&SubjectVar &"%') AND (""http://schemas.microsoft.com/mapi/proptag/0x0065001f"" like '%"&SenderMailVar &"%') AND (""urn:schemas:httpmail:datereceived"" >= '07/19/2020 00:00:00')"
SubjectVar and the SenderMailVar are the variables that contain the values needed.
I have tried using a Like Operator on DateReceived but It didn not work. So I have kept it in the format it is supposed to accept as the mails have “MM/dd/yyyy HH:mm:ss” format.
@Shubham_Varshney I have tried with Completely using the mail Id, It worked for me. So you’re assigning to a variable and using it or directly using it, If you have not check by directly using it, can you check once ?
Also does it give an error or there won’t be no mails received ?Also make sure the date is set right.