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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Cannot Retrieve IMAP m...
Power Automate
Unanswered

Cannot Retrieve IMAP mails if too many emails

(0) ShareShare
ReportReport
Posted on by 6

I was trying to retrieve IMAP mails and save the body of emails tru Power Automate Desktop. When I try to retrieve all unread mails ( which has only a few , less than 10 emails), it respond soon and quickly into next step. But when I try to retrieve all mails ( which has about 500 emails), it just stuck in the retrieve step - I tried to operate for 30 mins which still retrieving. 

I have the same question (0)
  • lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at

    Ok, what is your question?  Is Power Automate Desktop the right tool for the job? What if you run the flow in batches?

  • Hushbaby Profile Picture
    6 on at

    Thanks for ur opinion.

    I tried to run the flow in a longer time, and it successed in 2 hours (2 batches 800 emails).

    I'll try to seprate the mail box in to mutiple, but is there any other methods to run the flow in batches?

     

  • lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at

    Do the emails need to stay unread? If not then you can create a loop to process "the first 50" unread emails over and over, and mark processed emails as read.

  • Hushbaby Profile Picture
    6 on at

    How do I set "the first 50" unread emails? I cannot limit the number of the list "RetrievedEmails" before retrieveing. I try to set a var (such as 1 ) to %RetrievedEmails.Count% first, but it told me that it's not a Custom Objects. Seems like it can only assign RetrievedEmails.Count to other var, but cannot assign a var to it. Could u plz teach me more detailed? It would be so appreaciated!

  • Hushbaby Profile Picture
    6 on at

    I guess I found the reason why it's so slow. Maybe the retrieving will retrieve the attachments wheather or not chose to download. 

    When I retrieve 210 emails which have no attachments, it cost me 2 mins. But when I retrieve 500 emails (each of them has attachments) cost me almost 2 hours.

    How can I let the service do not retrieve attachments?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 274 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 175

#3
Haque Profile Picture

Haque 166

Last 30 days Overall leaderboard