Skip to main content
Community site session details

Community site session details

Session Id : HVNT2I1BbMzcuJX8nGPZLt
Power Automate - General Discussion
Unanswered

Getting around the "Get Emails (v3)" Top 25 limitation

Like (0) ShareShare
ReportReport
Posted on 9 Apr 2021 03:26:06 by 228

Hello All,

 

I'm creating a manual flow to get emails using "Get Emails (v3)" from Office 365 that have a specific subject heading and are unread.

I will then save specific attachments etc. We receive this email type once a month but when we do the emails are around 200.

 

The Top 25 limitation is creating a bottleneck for processing this. At worst, I need to create a loop of some sort that will process 25 at a time. I'm trying to create a DO UNTIL loop for value = 0 but haven't thought out how to set a variable because my email step is further down in the flow.

 

Any ideas? Am I close?

 

Thanks!

 

 

  • sweis Profile Picture
    2 on 17 Apr 2023 at 18:39:08
    Re: Getting around the "Get Emails (v3)" Top 25 limitation

    This may or may not be helpful for anyone, but I figured I'd add in. If its feasible with the volume of your emails being targeted, using "fetch only unread messages" set to "Yes" and marking 25 messages unread at a time is a strategy that worked for me.

  • razorSlash Profile Picture
    6 on 13 Dec 2022 at 15:23:47
    Re: Getting around the "Get Emails (v3)" Top 25 limitation

    Right the loop will not stop - since the emails are still in your inbox folder. So, every time you run GetEmails - it'll retrieve those emails. You'd need to move the emails outside of the Inbox folder so that the flow can process through all emails.

  • leoU Profile Picture
    22 on 13 Dec 2022 at 14:07:28
    Re: Getting around the "Get Emails (v3)" Top 25 limitation

    Thank you, mine is retrieving and adding a row into an excel file; but yet the loop is not stopping; AllEmailsProcessed Set Variable never reach 0; it always the same number, and therefore; forced the loop not to stop. I also tried Decrement variable; but it will stop for only 25 emails; and never pass 25 emails.

  • razorSlash Profile Picture
    6 on 13 Dec 2022 at 13:58:49
    Re: Getting around the "Get Emails (v3)" Top 25 limitation

    It depends on what you're doing with the emails once you retrieve them. In my case, I retrieve emails from the Inbox folder and then archive them to a different folder [1].

     

    Hence the next time I retrieve emails, it isn't getting the same set of emails again. It'll get a new set and archive those. In this way, it'll run until all emails retrieved are archived and then exit the while loop.

     

    [1]

    razorSlash_5-1670939782307.png

     

  • leoU Profile Picture
    22 on 10 Dec 2022 at 00:17:28
    Re: Getting around the "Get Emails (v3)" Top 25 limitation

    @razorSlash Please, I need help on this code; the Do Until is not stopping; just continue running!

  • VictorIvanidze Profile Picture
    12,554 on 20 Jul 2022 at 16:24:17
    Re: Getting around the "Get Emails (v3)" Top 25 limitation

    Use a GRAPH request instead of "Get emails" action.

  • Shrikrishna_G Profile Picture
    2 on 20 Jul 2022 at 13:07:54
    Re: Getting around the "Get Emails (v3)" Top 25 limitation

    I utilized this solution which solved my problem partially . In a day I receive 200 300 emails . Hence In order to process earlier emails this solution will not suffice . Need some pointer on how to add "date range" to filter messages.  

  • rachidbe90 Profile Picture
    4 on 04 Apr 2022 at 11:20:01
    Re: Getting around the "Get Emails (v3)" Top 25 limitation

    Hello,
    can you share a copy of your solution?

  • razorSlash Profile Picture
    6 on 16 Jul 2021 at 15:30:35
    Re: Getting around the "Get Emails (v3)" Top 25 limitation

    I was able to accomplish this through using 

    length(outputs('Get_emails_(V3)')?['body/value'])
     
    As long as the GetEmail continues to return emails in the list - we will stay in the while loop. If it returns 0 items in the list, we get out of the loop and have finished processing all emails.
     

    razorSlash_0-1626449346742.png

     

  • r96359 Profile Picture
    228 on 14 Apr 2021 at 14:45:52
    Re: Getting around the "Get Emails (v3)" Top 25 limitation

    Can anyone assist in explaining the suggestion recommended above? 

    I'm not understanding. Thanks!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete