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!
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.
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.
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.
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 Please, I need help on this code; the Do Until is not stopping; just continue running!
Use a GRAPH request instead of "Get emails" action.
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.
Hello,
can you share a copy of your solution?
I was able to accomplish this through using
Can anyone assist in explaining the suggestion recommended above?
I'm not understanding. Thanks!