cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
kelseyh231
Level: Powered On

Help with Updating Specific Planner Task Using Flow

I currently have a PowerApps form that is used to populate a SharePoint list. The Sharepoint List then populates a Planner Plan. This all occurs through Flow. For instance, I currently have a Flow that does the following:

PowerApps fills out Sharepoint -->

When a new item is created in Sharepoint -->

Create a task -->

Delay -->

Update a task -->

Update task details.

 

This flow works great. If someone were to update the task/issue in the PowerApps form, it automatically updates the Sharepoint list item. However, what I need is for the Planner to then get the same update to the specific task. I tried making a Flow that did the following:

When an item is created or modified in SharePoint -->

Get my profile (V2) -->

List tasks -->

Apply to each -->

Update a task -->

Update tasks details

 

What happens is the following: I update one task in my PowerApps form and all of a sudden EVERY SINGLE PLANNER TASK is updated to the same exact thing. I only want it to update the one task that I am changing. Does anyone know how to do this? Thanks in advance.

3 REPLIES 3
Community Support Team
Community Support Team

Re: Help with Updating Specific Planner Task Using Flow

HI @kelseyh231 ,

 

Do you want to update the specific task in Planner when a corresponding item is modified in SharePoint?

 

I have made the following flow for your scenario.

 

  • Add the trigger When an item is created or modified.
  • Initialize a String variable named as Tasks.
  • List tasks from the Planner.
  • Add an Apply to each, select Value from the action List tasks, then add action Append to string variable. Set its value as dynamic content value Title.
  • Under apply to each, add a Condition to check if the variable Tasks contains Title.
  • Under If yes branch, add Condition2 to check if the Title is equal to value Title. If yes, update a task, then update task details.
  • Under If no branch of Condition, add action Create a task to create a new one if it doesn’t exist in the planner.

Images for your reference.

1.PNG2.PNG

 

Best regards,

Mabel

 

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
kelseyh231
Level: Powered On

Re: Help with Updating Specific Planner Task Using Flow

Hi  @v-yamao-msft, your solution was very helpful. I performed the test to see if it works and my only issue now is that the flow does not stop running. It has been running for 8 minutes now, the change was updated, there should be no other changes, but it is still running. Is there a way to stop it? Thank you!

 

 

Community Support Team
Community Support Team

Re: Help with Updating Specific Planner Task Using Flow

Hi @kelseyh231 ,

 

Please update your flow likes below.

 

I made another test and I found that we should initialize an Array variable but not a string variable.

 

So in the action Initialize variable, set the Type to Array.

 

In the Apply to each action, replace the Append to string variable with action Append to array variable.

 

It should work properly then.

 

Please take a try with it.

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 106 members 4,247 guests
Please welcome our newest community members: