Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

ODATA Filter on Get Items - Return items created today (for a specific timezone)

(0) ShareShare
ReportReport
Posted on by 632

Hello, I need some help with an ODATA filter query on a Get Items action.

In laymen's terms: Created = TODAY and Booking Type = New and Credit is not equal to Yes

Here is my ill perceived attempt.

Created eq utcNow('dd-MM-yyyy') and Booking_x0020_Type eq 'New'and Credit ne 'Yes'

Capture.PNG

Anyone know where I've gone wrong?

  • Brice235i Profile Picture
    632 on at
    Re: ODATA Filter on Get Items

    Actually,  I ditched the filter array and got the odata filter working:

     

    Capture.PNG

     

    the expressions are: 

    concat(body('UTCnow_to_AWST_for_Filter_Calc'), 'T00:00:00')
    concat(addDays(body('UTCnow_to_AWST_for_Filter_Calc'), 1, 'yyyy-MM-dd'), 'T00:00:00')
  • Verified answer
    Brice235i Profile Picture
    632 on at
    Re: ODATA Filter on Get Items

    Hello, thank you, but no, that didn't work.  My colleague came up with the answer by using a separate filter array action.

    value is from GetItems and the expressions left to right are:

    formatDateTime(item()?['Created'], 'yyyy-MM-dd')

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

    Capture.PNG

  • abm abm Profile Picture
    32,492 Most Valuable Professional on at
    Re: ODATA Filter on Get Items

    Thanks for our reply.

     

    Try utcNow('yyyy-MM-dd')

  • Brice235i Profile Picture
    632 on at
    Re: ODATA Filter on Get Items

    Still doesn't work unfortunately.  Doesn't like the date 

    {
    "status": 400,
    "message": "String was not recognized as a valid DateTime. Creating query failed.\r\nclientRequestId: 17ee83df-5a4b-410f-b7e2-74ba62fbd906\r\nserviceRequestId: 17ee83df-5a4b-410f-b7e2-74ba62fbd906"
    }
  • abm abm Profile Picture
    32,492 Most Valuable Professional on at
    Re: ODATA Filter on Get Items

    Hi @Brice235i 

     

    What's the error you getting?

     

    In your filter query there is no space after eq 'New'

     

    Created eq utcNow('dd-MM-yyyy') and Booking_x0020_Type eq 'New'and Credit ne 'Yes'

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

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!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1