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 / ODATA Filter on Get It...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 651

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?

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    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'

  • Brice235i Profile Picture
    651 on at

    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,865 Most Valuable Professional on at

    Thanks for our reply.

     

    Try utcNow('yyyy-MM-dd')

  • Verified answer
    Brice235i Profile Picture
    651 on at

    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

  • Brice235i Profile Picture
    651 on at

    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')

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard