web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate - Exclu...
Power Automate
Unanswered

Power Automate - Exclude Planner Tasks Marked as Completed

(0) ShareShare
ReportReport
Posted on by 10

Hello, 

 

I currently have a flow that I have been using for around 4 weeks which will create a Task in Planner whenever an email in flagged. I also have some data operations set up so that it will count all tasks in the Planner to make sure there are no Tasks already in there with the same subject, if there is then it will not create a duplicate task. 

 

The flow has been working perfectly, however I have just realised that when the flow is counting all the tasks it is also counting tasks which have been marked as completed. Unfortunately for us the chances of us having the same email subject reoccurring in the future is highly likely. 

 

Is there a way I can add a variable in my flow to be able to have the flow still count all tasks to make sure there are no duplicates however have it only search incomplete tasks? 

 

Current flow attached. 

Count all Tasks: length(body('List_tasks')?['value'])

Count Filtered Tasks: length(body('Filter_array'))

Condition: Outputs('Count_Filtered_Tasks') is equal to Outputs('Count_All_Tasks')

Any help or suggestions are much appreciated. 

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @JessicaB ,

     

    You can add a filter array to get uncompleted tasks.

    vbofengmsft_0-1678327184406.png

     

    Best Regards,

    Bof

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard