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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get Items filter by DA...
Power Automate
Answered

Get Items filter by DATE AND TIME

(0) ShareShare
ReportReport
Posted on by 358

Hi,

 

I am trying to build an ODATA Filter Query that will restrict the resukts from the list to all items that have the Status field = Approved and the Modified date = Today, but AFTER 4PM

 

so how can I do that?

 

here's what I've got, but it isn't working:

 

Status eq 'Requested' and Modified gt @{formatDateTime(utcNow(),'yyyy-MM-dd 16:00:00')}

 

 

how can I filter by Date and time please

Categories:
I have the same question (0)
  • efialttes Profile Picture
    14,756 on at

    Hi!

    I would try the following

    https://powerusers.microsoft.com/t5/Building-Flows/ODATA-Filter-for-SharePoint-Date-Time-field-issues/td-p/256964

    Hope this helps 

  • Verified answer
    v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @livingstonep ,

     

    If the type of Status column is choice, we could not configure it in Filter Query.

    Besides, we need to add a single quote outside the expression.

    Image reference:

    39.PNG

    Expression reference:

    formatDateTime(utcNow(),'yyyy-MM-ddT16:00:00Z')

    If the type of Status in choice, please try to use Filter array to filter items and you need to fill Status Value in the filter.

    Hope this helps.

     

    Best Regards,

  • livingstonep Profile Picture
    358 on at

    thanks, in fact the Status filter is already working fine - it's the filter finding only items that were approved after 4PM Today that is giving trouble

  • v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @livingstonep ,

     

    Thank you for your reply. So is the method in my previous reply helpful to you?

     

    Best Regards,

  • Chloe2021 Profile Picture
    2 on at

    Hi, could you please help me as i have met the similar problem like the livingstonep, but i have set the two filter condition one is Modified gt 'addDays(utcNow(),-90,'yyyy-MM-ddTHH:mm:ssZ') and another Displayname2 ne 'null' and the test warning failure.

    Chloe2021_0-1650014374068.png

    Chloe2021_1-1650014530407.png

     

    But I test two conditions separately, it succeeded. 

    i am quite confused, could you help to solve this problem?

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 389

#2
Vish WR Profile Picture

Vish WR 331

#3
David_MA Profile Picture

David_MA 298 Super User 2026 Season 1

Last 30 days Overall leaderboard