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 / Update an existing Pla...
Power Automate
Unanswered

Update an existing Planner Task with an email

(0) ShareShare
ReportReport
Posted on by 5

Working with outlook and tasks. Here is what I want to do: 

 

  • A new email populates in an inbox
    • Does this subject line or conversation id (or some other value) exist in a task? 
      • No: Create new task
      • Yes: Update existing task (this is the part I need help with)

@eric-cheng @ScottShearer 

Categories:
I have the same question (0)
  • eric-cheng Profile Picture
    5,171 on at

    Hi @mcarleton ,

     

    Try the below flow.

     

    1) Use a when a new email arrives trigger and initialize a boolean variable defaulted to @false

     

    ericcheng_0-1627946270008.png

     

    2) Use the List tasks action in Planner

     

    ericcheng_1-1627946313377.png

     

    3) Add a condition to match the Title to contain the subject of the email.  You can modify this condition to suit your needs e.g. description contains subject etc.

     

    ericcheng_2-1627946356838.png

     

     

    4) If true, it means a task was found.   Set the boolean to @true and use either the Update a task action or Update task details action depending what you want to update.  Pass in the ID of the looped task.

     

    ericcheng_4-1627946435543.png

     

    5) Exit the loop and add a condition to check whether IsFound is false meaning no tasks were found.  If so, use a Create a task action to create a planner task

    ericcheng_5-1627946530718.png

     

    ** note - there is a chance you may end up updating multiple planner tasks if you don't set your conditions tight enough.  For example, if two tasks contains the same keyword, it will update both of them so you will need a better identifier.  E.g. Task Id below

    ericcheng_6-1627946665505.png

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

     

     

     

     

  • mcarleton Profile Picture
    5 on at

    @eric-cheng - i'm not sure what I'm doing wrong. It doesn't add to an existing task. The same email populates multiple tasks. 

     

  • eric-cheng Profile Picture
    5,171 on at

    Hi @mcarleton ,

     

    Please post a screenshot of your flow.

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

  • mcarleton Profile Picture
    5 on at

    flow1.jpgflow2.jpgflow3.jpgflow4.jpg1 new email came in but it repeated it in the other bucket as well1 new email came in but it repeated it in the other bucket as well

    @eric-cheng 

  • eric-cheng Profile Picture
    5,171 on at

    Hi @mcarleton ,

     

    Firstly can you check that your Condition 2 is outside of your Apply to Each loop as it sounds like it is inside.

     

    I have also highlighted your two conditions.  Can you run your flow with 1 email that should trigger an update i.e. title should contain subject and confirm if the1st condition is returning true and 2nd condition is returning false?

     

    If it isnt, add 2 Compose actions before the conditions and add  both your subject field and title field. Run it again and post the values so we can confirm it.

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

  • Kaaaaro Profile Picture
    20 on at

    @eric-cheng Hi! I just used the flow below and it seems to work, but as you said before it updates all of the task not the respective one.

    my conditions:

    Kaaaaro_0-1649254894165.png

    Can you help me with that? I do not know which identifier I should use to be able to attach the reply emails, forwarded emails etc to a previously created task.

    Thank you very much in advance!

    KR

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 639

#2
Valantis Profile Picture

Valantis 392

#3
11manish Profile Picture

11manish 350

Last 30 days Overall leaderboard