cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BrianS
Super User
Super User

Odata filter nor filtering

I have added a filter to a Get Item step in a flow: InspectionDue le addDays(utcNow(),60,'yyyy-MM-dd')

but it does not filter out any data; the entire list is returned even though only about 4 items in the list have dates less than 60 from now.

How can I trouble- shoot this?

Flow_Inspections_01.png

Here is part of the returned data:

Truck_Number

Due_Date

6196

2019-11-30

0045

2019-12-31

0047

2019-12-31

3518

2020-01-31

7906

2020-01-31

8540

2020-02-29

3553

2020-02-29

2474

2020-02-29

6359

2020-02-29

6928

2020-02-29

3250

2020-03-31

 

2 REPLIES 2
tom_riha
Super User
Super User

I'd say the filter works correctly, InspectionDue le addDays(utcNow(),60,'yyyy-MM-dd') will return all items where InspectionDue <= 2020-12-29, and all the dates you shared are less than December 2020. 

You should put there also bottom limit for today's date to get only items with InspectionDue between today and today+60.

 

InspectionDue le 'addDays(utcNow(),60,'yyyy-MM-dd')' and InspectionDue ge 'utcNow('yyyy-MM-dd')'

 



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

I did not put in all the dates returned - you are correct all those would be returned. Sorry for the confusion. 

I have it working now

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (5,168)