Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Help with string for listing only active Planner tasks, and listing only active Todos

(0) ShareShare
ReportReport
Posted on by 40

Hi there Microsoft Community!

I am trying to build a scheduled flow to go through active (uncomplete) titles of Planner tasks, and active (uncomplete) Todo tasks.

A end of day sync as my flagged emails create Planner tasks.

 

Idea will be if the title/subject is the same, it will do nothing.

But if there is a mismatch, and one active title exists, it will complete either the ToDo Flagged emails folder or Planner task.

In a past flow I used on trigger

 'When a to-do in a specific folder is updated (V2)':

 

@equals(triggerOutputs()?['body/status'], 'completed') 

 


but this scenario is quite a bit different.

So far this is what I have, and no success.
msedge_MlDpVxFdu1.png


  • SimonB2020 Profile Picture
    40 on at
    Re: Help with string for listing only active Planner tasks, and listing only active Todos

    woops @Expiscornovus , noob mistake.

     

    Thanks again!

  • Verified answer
    Expiscornovus Profile Picture
    31,779 Most Valuable Professional on at
    Re: Help with string for listing only active Planner tasks, and listing only active Todos

    Hi @SimonB2020,

     

    You added it directly after your List to-do's by folder (V2) action and used the Body in the From field? Did you try copy/pasting it into the action via edit in advanced mode option?

     

    Below is an example (click on the gif to see it in higher resolution).

     

    copypastefilterarray.gif

  • SimonB2020 Profile Picture
    40 on at
    Re: Help with string for listing only active Planner tasks, and listing only active Todos

    Actually @Expiscornovus it will not allow me to enter that expression, it keeps coming back as invalid.

    Any ideas?

  • SimonB2020 Profile Picture
    40 on at
    Re: Help with string for listing only active Planner tasks, and listing only active Todos

    Thank you for this!

  • Verified answer
    Expiscornovus Profile Picture
    31,779 Most Valuable Professional on at
    Re: Help with string for listing only active Planner tasks, and listing only active Todos

    Hi @SimonB2020,

     

    You can use a Filter Array directly after your List to-do's by folder (V2) action to only retrieve active tasks. This will make the list of tasks you are using to compare a lot shorter. (You can also do the same for planner tasks as well).

     

    Below is an example of using such a filter array.

     

    Use this for the where statement

     

    @not(equals(item()?['status'], 'completed'))

     

    active_todos.png

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492