Hi,
I created a flow that creates a task automatically in Planner whenever I receive an email in a shared mailbox and it also set the flow to update a task when someone replies to the email that created the task initially. The first part of the flow works fine as the task is being created when I receive an email in my shared mailbox. However ,for the second part, when I receive an email reply on my shared mailbox the flow updates all the tasks that exists in my Planner instead of a particular one.
I need help to make the second part work please.
Find below screenshots of my current flow.
Thank you.
In this example I used the subject line of the original email as the title of the task in Planner when it was created. This is how you update it when you receive a reply.
Could you provide an example or a visual representation of the solution,
it would help a lot!
Your problem is the use of the Apply to each around the update task action. You need to find some way to filter the task list that is returned so that you can update a specific task using the TaskId. The problem is that you won't know the TaskId from the email. So you'll need to
1) Get a list of all your tasks
2) Filter that list using something from the email, maybe the subject if that is used originally to create the task
3) Parse the filtered list to gain access to the values
4) Run your apply to each on the filtered list that only contains the one task you want to update
Michael E. Gernaey
497
Super User 2025 Season 1
David_MA
436
Super User 2025 Season 1
Riyaz_riz11
244
Super User 2025 Season 1