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 / Get Items on sharepoin...
Power Automate
Unanswered

Get Items on sharepoint list where Modified is Today

(0) ShareShare
ReportReport
Posted on by 85

Hello, having difficulty getting today's modified items. My odata filter looks like this

 

modified error.png

 

 

 

The format of utcNow is yyyy-MM-dd but when I use eq or ge no results are returned. 'Less than' works and returns everything in the list that is 'Approved'. Could anyone suggest an easier way  to do this?

 

Kind regards, Dale

 

Categories:
I have the same question (0)
  • Verified answer
    Jay-Encodian Profile Picture
    2,920 on at

    Hey @dflemming 

    Try this expression: startOfDay(utcNow(),'yyyy-MM-ddTHH:mm:ssZ')

    Full filter query: Status eq 'Approved' and Created gt 'startOfDay(utcNow(),'yyyy-MM-ddTHH:mm:ssZ')'

    HTH

    Jay

  • dflemming Profile Picture
    85 on at

    Many thanks, I've made the change however my result is still empty. I've pasted my filter in below.

     

    Status eq 'Approved' and Created gt '@{startOfDay(utcNow(),'yyyy-MM-ddTHH:mm:ssZ')}'

     

    When I check the list there are definitely items created today.

     

    Regards, Dale

  • Jay-Encodian Profile Picture
    2,920 on at

    Hey @dflemming 

    I have just setup this list to test the query:

    5.jpg

     SharePoint action configured as follows:

    Filter query: Status eq 'Approved' and Created gt '@{startOfDay(utcNow(),'yyyy-MM-ddTHH:mm:ssZ')}'

    6.jpg

     And the data returned is correct:

    7.jpg

     

    The JSON:

    8.jpg

     

    Can you please verify your query by breaking it down, i.e. just filter on status, and then just filter on the Created field... if there is an issue with status you need to verify the internal field name via list settings.

    HTH

    Jay

     

  • Verified answer
    dflemming Profile Picture
    85 on at

    Thanks Jay, I ran the date check alone and found some results. Then added the Approved condition after the date check and it worked. Thanks for the troubleshooting tip and the StartofDay() function. I know the order shouldn't affect it but I'm glad it working.

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