web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Getting around the "Ge...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on 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!

 

 

Categories:
I have the same question (0)
  • leyburn19 Profile Picture
    2,157 on at

    If the amount is 25 then have two integer variable.  One set at 0 and the other at 25. 

    The in the do until have it based on first variable equals second variable,

     

    In you loop use the Increment Variable action by 1

  • r96359 Profile Picture
    228 on at

    @leyburn19 It's unknown how many emails there will be ahead of time to set a counter variable value.

    Could I start with variable ListEmails = 25,  DoUntil value is less than 1? Then before the end change ListEmails to "value" which is the number of email objects? Would this work?

    Thanks

     

    r96359_0-1617991836355.png

     

  • r96359 Profile Picture
    228 on at

    Can anyone assist in explaining the suggestion recommended above? 

    I'm not understanding. Thanks!

  • razorSlash Profile Picture
    6 on at

    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

     

  • rachidbe90 Profile Picture
    4 on at

    Hello,
    can you share a copy of your solution?

  • Shrikrishna_G Profile Picture
    2 on at

    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.  

  • VictorIvanidze Profile Picture
    13,079 on at

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

  • leoU Profile Picture
    22 on at

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

  • razorSlash Profile Picture
    6 on at

    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 at

    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.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 291 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 238 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 109 Super User 2026 Season 1

Last 30 days Overall leaderboard