cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Kudo Collector
Kudo Collector

How to filter using Modified Date in Get Items Step

I have a Get Items step in my flow and want to only get items that have been Modified today

 

so in the filter query field I have tried:

 

Modified eq utcNow('yyyy-MM-dd')

 

It doesn't give an error but there are no records returned...

I have also tried

 

formatDateTime(Modified, 'yyyy-MM-dd') eq utcNow('yyyy-MM-dd')

 

but that formatDateTime is not accepted by the expression builder

So how do I use an ODATA Filter on the SharePoint List Modified field in the Get Items step?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Kudo Collector
Kudo Collector

Re: How to filter using Modified Date in Get Items Step

so finally I tried this

Status eq 'Generated' and Modified  ge '@{formatDateTime(addDays(utcNow(), -1), 'yyyy-MM-dd')}'

and it workd, returning the two records in the list that had been modifed today

View solution in original post

2 REPLIES 2
Highlighted
Kudo Collector
Kudo Collector

Re: How to filter using Modified Date in Get Items Step

so finally I tried this

Status eq 'Generated' and Modified  ge '@{formatDateTime(addDays(utcNow(), -1), 'yyyy-MM-dd')}'

and it workd, returning the two records in the list that had been modifed today

View solution in original post

Highlighted
Super User III
Super User III

Re: How to filter using Modified Date in Get Items Step

@livingstonep 

The reason that your second solution worked and the first one did not is that Created includes the time.  So to be returned an items date and time would need to be the same what you are comparing it against.  Also, I don't believe that your first try included the single quotes around the expression. I @ before the expression.

Glad that you got it working!

 

 

 

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (5,781)