When I filter with From contains Sender’sMail it shows me that there are 8 emails in the folder and the last one it finds is from today 9:20, and when I filter that the email Body contains the word “test” in it, it finds 16 emails and finds the last email I sent 14:50 the same day(5 min ago). All mails are from the same sender. I am not stacking the filters. I need to get all mails only filtering by Sender. I am using Application ID and Secret for authentication type.
As you are filtering in a different way both times, different results are possible.
Filtering by sender only gives you results by a specific sender only.
But when you are filtering by using a keyword “test” you are widening your search, this keyword can be in multiple emails even the ones from different sender, hence its giving you more number of results.
If I have not understood your requirements correctly, kindly provide more details to help us understand better.
As per my understanding pls try retrieving all emails first without filters, then filter by sender locally in UiPath & double-check your filter syntax for the sender field.