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 / Moving mail, when mail...
Power Automate
Answered

Moving mail, when mail is marked as completed

(0) ShareShare
ReportReport
Posted on by

Hi all

At work I have been tasked with two flow tasks.

The first was to mark all recieved mails in the inbox with a flag. This flow I could easily do after seeing the example of flagging all mails from a supervisor.

The second task is to move the mail when they change the status of the mail from flagged to completed. I have looked and looked and looked, so far I have not found anything I could get to work. Does any have any idea how I could do this in flow? I know I could use an outlook rule, but it is asked specifically to be done in flow.

Thanks in advance.

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,830 Most Valuable Professional on at

    Hi @Rune-KH,

     

    As far as I am aware you can't check for the status of the flag within the When an email is flagged (V3) trigger action .

     

    But maybe you can workaround this by using the following approach: Enable the ToDo-Outlook integration, https://support.microsoft.com/en-us/office/using-microsoft-to-do-with-flagged-email-from-outlook-f90c37b0-4453-4756-a6d5-e2ef8d33b395. 

     

    When you enable this, every flagged e-mail gets tracked in the Flagged Email ToDo list. The benefit of this integration is that whenever a flag is set to completed, the task is also set to a completed status. You can use a trigger for ToDo to track completed task and then find the linked e-mail and move it.

     

    Below is an example of such a setup.

     

    1. Add a trigger When a to-do in a specific folder is updated (V2) action. Connect it to the Flagged Emails To-do list.

    todoflaggedemails.png

    2. Assign the following trigger condition in the settings of the trigger

     

    @equals(triggerOutputs()?['body/status'], 'completed')

     

    triggercondition_todolist.png

     

    3. Add a Move email (v2) action, configure your move folder and use the following expression for your message id

     

    triggerOutputs()?['body/linkedResources']?[0]?['externalId']

     

     

     moveemailtootherfolder.png

  • sslawidis Profile Picture
    5 on at

    @Expiscornovus This solution worked like charm for a couple of months. But in the last weeks it has been more and more unreliable and stoped working. Is this setup still working for anyone or has some adjustments to be made?

    Thanks in advance

  • Expiscornovus Profile Picture
    33,830 Most Valuable Professional on at

    Hi @sslawidis,

     

    I haven't checked/revised this solution in a while (I created it two years ago).

     

    Just to double check. Are you using the V2 version of the trigger action? The v1 one has been deprecated about half a year ago. 

    https://learn.microsoft.com/en-us/connectors/todo/#deprecation-of-outlook-tasks-apis

     

  • sslawidis Profile Picture
    5 on at

    Hi @Expiscornovus,

    thanks for answering. 

    Yes I'm using the V2 version of both components, when you created the solution the trigger was in preview maybe something changed in the behavior?

    I deactivated and reconfigured the flow and tried again. And than it worked, but it stopped again. It's pretty unreliable at the moment. It's a very nice solution if it works though.

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 630

#2
Valantis Profile Picture

Valantis 420

#3
11manish Profile Picture

11manish 350

Last 30 days Overall leaderboard