Microsoft 365 Get Email List - different results when looking for the same sender

Description

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.

Help, guys
Thanks in advance

Link

Date

2025-06-17

Hi @h.dimitrov

I didn’t quite understand the concern here.

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.

Hi @h.dimitrov

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.

Happy Automation

@h.dimitrov

If the emails are filtered out then mostly the sender migth be different..please check the same and confirm

Cheers