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

Community site session details

Session Id : 1Xt/CNj1hosCL/ZWiIZ83v
Power Automate - Building Flows
Answered

Get items Filter Query 'Created'

Like (1) ShareShare
ReportReport
Posted on 8 May 2018 15:56:06 by

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

 

 

 

  • aparnaa Profile Picture
    95 on 10 Feb 2024 at 16:28:23
    Re: Get items Filter Query 'Created'

    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.

  • susilacherla12 Profile Picture
    39 on 18 Dec 2019 at 18:12:58
    Re: Get items Filter Query 'Created'

    where does the output get stored. 

  • Community Power Platform Member Profile Picture
    on 16 May 2018 at 21:03:01
    Re: Get items Filter Query 'Created'

    @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. 

  • Verified answer
    v-xida-msft Profile Picture
    on 12 May 2018 at 02:37:30
    Re: Get items Filter Query 'Created'

    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

     

     

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2