Skip to main content

Notifications

Community site session details

Community site session details

Session Id : Dfhw/dyizp3y8vLwFL2ctY
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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard
Loading started