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 / Filter query not retur...
Power Automate
Unanswered

Filter query not returning not started tasks

(0) ShareShare
ReportReport
Posted on by

Hi,

 

In one of the flows, under get items I am using below filter query.

Capture.JPG

I want to fetch non completed tasks from a SP task list and along with that I have used below conditions as OR:

1. Duedate eq addDays(utcNow(),0,'yyyy-MM-dd') or

2. DueDate eq addDays(utcNow(),-1,'yyyy-MM-dd') or

3. DueDate eq addDays(utcNow(),-2,'yyyy-MM-dd') or

4. DueDate eq addDays(utcNow(),-3,'yyyy-MM-dd') or

 

For some reason its fetching not started and completed tasks, task status has only two options: Not started, completed. Am I using the filter query wrong? can someone help? I want to only fetch non started tasks along with date filters I listed above as OR.

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

    Hi @Anonymous 

     

    Could you please explain more details about the Status column in your list? Is it a choice type column?

    If the Status column is a choice type column, you couldn't filter the items in the Filter Query field in the Get items action, you need to add a Filter Array action under the Get items action for filter the items that Not started as screenshot below:

    1.png

     

    Also please make sure to choose the Status Value dynamic content instead of the Status dynamic content in the Filter Array action.

     

    Best regards,

    Alice       

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

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard