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 / Help with string for l...
Power Automate
Unanswered

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


Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    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

  • SimonB2020 Profile Picture
    40 on at

    Thank you for this!

  • SimonB2020 Profile Picture
    40 on at

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

    Any ideas?

  • Verified answer
    Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    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

    woops @Expiscornovus , noob mistake.

     

    Thanks again!

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