Skip to main content

Notifications

Power Automate - General Discussion
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!

 

 

  • sweis Profile Picture
    sweis 2 on at
    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
    razorSlash 6 on at
    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
    leoU 22 on at
    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
    razorSlash 6 on at
    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
    leoU 22 on at
    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
    VictorIvanidze 11,859 on at
    Re: Getting around the "Get Emails (v3)" Top 25 limitation

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

  • Shrikrishna_G Profile Picture
    Shrikrishna_G 2 on at
    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
    rachidbe90 4 on at
    Re: Getting around the "Get Emails (v3)" Top 25 limitation

    Hello,
    can you share a copy of your solution?

  • razorSlash Profile Picture
    razorSlash 6 on at
    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
    r96359 228 on at
    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard