web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get items Filter Query...
Power Automate
Answered

Get items Filter Query 'Created'

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I am atempting to use the Filter Query on the SharePoint 'Get items' step. What I woudl like to do is return only the items that were created on that day. I am using the SharePoint 'Created' coulum and the folowing expresion to retun, what I think is the proper format for the created:

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

Below is the 'Get items' step:Get Items.png

 

 

This is the error that I am getting:BadRequest.png

 

 

 

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

    Hi @Anonymous,

     

    Do you want to filter items which are created in current day using the OData Query within the Filter Query field of the "Get items" action?

     

    I think there is something wrong with the formula that you provided within the Filter Query field of the "Get items" action of your flow. I have made a test on my side and please take a try with the following workaround:

    • Add a proper trigger, here I use Flow Button trigger.
    • Add a "Get items" action, specify Site Address and List Name. Within Filter Query field, type the following formula:
    Created gt '@{startOfDay(utcNow(),'yyyy-MM-ddTHH:mm:ssZ')}'

    1.JPGThe startOfDay(...) expression read as below:

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

    Note: The startOfDay(...) expression is wrapped with single quotes.

     

    Image reference:2.JPG

    The flow works successfully as below:3.JPG

     

    More details about using expression in flow actions, please check the following article:

    Use expression in flow actions

     

     

    Best regards,

    Kris

     

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-xida-msft

    Thanks for the reply! I think where I was going wrong was I was just using the expression builder and not putting the quotes around the expression. When I typed the expression directly into the Filter Query box, it worked as expected. 

  • susilacherla12 Profile Picture
    39 on at

    where does the output get stored. 

  • aparnaa Profile Picture
    95 on at

    I am getting the below error when i try the command

     

    The expression "Created eq 2024-02-10T00:00:00Z" is not valid. Creating query failed.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard