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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / List rows using OData ...
Power Automate
Answered

List rows using OData filter on formatted date

(0) ShareShare
ReportReport
Posted on by 802

Hi, 

 

I have a dataverse table where I want to list rows with an OData filter. 

 

The columns to include in the filter are new_date and new_desk. The date column is of type Date Only, and the desk column is text. 

 

The date in Dataverse appears, formatted, as dd/MM/yyyy, but when I have listed rows on the entire table to see the date value itself, it is in format yyyy-MM-dd. 

 

Therefore, my OData query at the moment is below, but anything I try returns a BadRequest error. Note that I am using the Add to Time action previously, with a Base Time of utcNow(), adding 1 day, using the output from this in a Convert Time Zone action, and the format for this is yyyy-MM-dd.  Therefore, the date in the below is created via expression  formatDateTime(body('Convert_time_zone'), 'yyyy-MM-dd')

 

new_date eq '2023-02-10' and new_desk eq 'LD5'

 

Any ideas what I am doing wrong?  This is driving me mad.

 

Thanks

K.

 

Categories:
I have the same question (0)
  • Verified answer
    wskinnermctc Profile Picture
    6,519 Moderator on at

    I'm guessing at this for you to test,

    Is the dataverse table actually carrying a time of midnight that gets scrubbed off when it is pulled into power automate?

    https://learn.microsoft.com/en-us/power-apps/maker/data-platform/behavior-format-date-time-field 

    In the microsoft article it says that a Date Only field "The time portion of the value is always 12:00AM."

     

    So maybe if you include the time of midnight in the filter it might work?

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 176 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 96 Super User 2026 Season 1

Last 30 days Overall leaderboard