cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

When project Published on Project Online create a task and stop duplication

Hi Guys,

I have managed to create a flow to create tasks when project published on Project Online. The problem is each time I publish the project, flow keeps duplicating existing ones. Top stop this I have retrieve the task on planner and check the planner task name against project task names. But the condition always get "false" status. See the attached screenshots. Any help would be really appreciated.

 

Capture1.PNG

Capture 2.PNG

Capture 3.PNGCapture 4.PNG

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: When project Published on Project Online create a task and stop duplication

Hi @SanjayaP,

 

Please use the length() function to determine the value of List tasks whether equal to 0:

Annotation 2019-11-07 163932.png

 

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

View solution in original post

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: When project Published on Project Online create a task and stop duplication

Hi @SanjayaP,

 

Please have a try to create another Apply to each action, and the put the Output of Select into it, and then put item()?['TaskName'] in the left of the condition:Annotation 2019-11-06 094854.png

 

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

Highlighted
Frequent Visitor

Re: When project Published on Project Online create a task and stop duplication

Thanks for reply. now the i get the flow works. 

When very first time runs the flow, the Planner is empty. Then flow stop there. 

How can I check the Planner Task list empty or not? 

 

I used this but it doesn't work
 
empty(body('List_tasks'))
 
Thanks you very much for your great support!!Capture 6.PNGCapture 7.PNG
Highlighted
Community Support
Community Support

Re: When project Published on Project Online create a task and stop duplication

Hi @SanjayaP,

 

Please use the length() function to determine the value of List tasks whether equal to 0:

Annotation 2019-11-07 163932.png

 

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

View solution in original post

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Users online (4,183)