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 Automate
Answered

email flows

(2) ShareShare
ReportReport
Posted on by 35
As a comment :
As layment, I built a simple email flow to find emails from a specific sender (the limit to search is 100 emails not a ton, of which maybe 30 in this case are to be selected) in my inbox, save the .pdf attachments on those emails to a one drive folder (accounts payable invoices) and then to delete the emails. I wanted it only to mark emails read/unread however i could not get that one to work without error. something about header content but the content is all there to be had. so i used delete emails just to get a successful flow though less than ideal choice).

The routine runs successfully and does it's job pretty well at creating copies of the invoices in the one drive folder. I will change that to have the .pdf attachments emailed to a specific email address (assuming that is a control available). That recipient will be an accounts payable application inbox that will perform OCR and add the invoice into accounts payable for me. Nice!

HOWEVER, the routine is inconsistent in catching all emails it should process, and then in deleting the email. In one case it left the email but deleted all of the attachments in the original email! Not tragic as it got and saved to one drive the attachment needed. So, the routine is not reliable in all phases. I can only guess the desktop may be more consistent at actioning on the emails? on the other hand i looked at desktop, am not a developer, so yeah not messing with that. 
 
So, is it me or is power automate not consistent with modifying or deleting emails in my outlook account in mail flows?

 
Categories:
I have the same question (0)
  • Suggested answer
    Robu1 Profile Picture
    1,690 Super User 2026 Season 1 on at
    Hi     ,
     
    Thank you for choosing Microsoft Community.
     
    Try not searching for batches of emails — that’s why it misses items and behaves inconsistently.
     
    Instead, use the trigger “When a new email arrives (V3)” so each email is processed once, reliably.
     
    Get the email again inside the flow, then save or forward the attachments.

    Delete or move the email using the trigger’s Message ID — this avoids ETag and partial‑delete issues.

    If you want to keep the email, move it instead of marking read/unread (moving is stable; modifying is not).
     
    I hope this helps resolve the issue! If you need more specific guidance, feel free to ask.
     
     
     
    🏷️ Please tag me @Robu1 if you still have any queries related to the solution or issue persists.
     
    ✅ Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future. ❤️ Please consider giving it a Like, If the approach was useful in other ways.
     
    Happy to help
    Robu 1👩‍💻
     
  • GM-06050200-0 Profile Picture
    35 on at
    @Robu Thank you for reply.
    I currently have the mail running using a manual trigger. So what trigger do you suggest in order to do as you suggest? I will also replace with delete emails with move emails instead. That will work.
  • Robu1 Profile Picture
    1,690 Super User 2026 Season 1 on at
    Use the “When a new email arrives (V3)” trigger processes each email individually, the moment it arrives, using a stable Message ID that doesn’t change mid‑flow.
     
     
  • GM-06050200-0 Profile Picture
    35 on at
    @Robu So this flow is always running in the background on my mailbox? If that is case and I want the same action on a few different specific senders to my inbox i should specify those senders in one mail flow? rather than multiple flows running concurrently each with a different specified sender? And ,thanks for assistance.
  • Verified answer
    Olufemi 7 Profile Picture
    72 on at
    Hello @GM-06050200-0,

    Yes, that trigger basically sits there waiting for new mail to arrive, so you don’t need to manually search batches of emails anymore. If all the senders are going through the same process, you probably keep it in a single flow and just filter by sender address. Multiple flows watching the same inbox can sometimes make troubleshooting harder later on.

    Also stick with moving the emails to a Processed folder instead of deleting them or changing read/unread status. That tends to behave much more consistently with the Outlook connector. You can even filter the sender directly in the trigger settings so the flow only fires for the vendors you care about.

    Docs: Trigger a cloud flow based on email properties


     
  • Suggested answer
    GM-06050200-0 Profile Picture
    35 on at
    thanks @GM-06050200-0.  I'll do all that. i have the rule running now. even though processing emails one at a time instead of a batch of. still had to loop fetch email body and then attachments to get the flow to save without errors.  the visual editor does work but is clunky currently (at least for beginners) who are not developers.  even with help of copilot (which is wrong at times when trying to solve a problem). you have to stick with it. So, harder than making a rule in Outlook, but more powerful too. guess you can't everything you want in life.... 
  • Verified answer
    Robu1 Profile Picture
    1,690 Super User 2026 Season 1 on at
    That’s right 
     
    Use a single flow with the When a new email arrives (V3) trigger, filter by sender in the trigger, and move emails to a Processed folder for maximum reliability.

     

    Glad this has been resolved.


    cheers,

     

    Robu1

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 796

#2
Valantis Profile Picture

Valantis 671

#3
Haque Profile Picture

Haque 551

Last 30 days Overall leaderboard