cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jrod86
Frequent Visitor

SharePoint Get Items Filter Query - Range Last Twelve Hours

Hi there! I'm trying to filter a SharePoint list to show items with a date submitted within the last 12 hours. Any help?

1 ACCEPTED SOLUTION

Accepted Solutions
efialttes
Super User III
Super User III

Hi!

On your 'Get items' action block, I would assign to its 'Filter query' input the following WDL expression:

MyDateFieldInternalName gt '@{getPastTime(12, 'Hour')}'

GReat stuff here

https://www.sharepointnutsandbolts.com/2019/06/flow-filter-sharepoint-items-by-date.html

and here

https://www.flowug.com/communities/community-home/digestviewer/viewthread?GroupId=2273&MessageKey=58...

 

Not in my laptop, unable to test



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

5 REPLIES 5
efialttes
Super User III
Super User III

Hi!

On your 'Get items' action block, I would assign to its 'Filter query' input the following WDL expression:

MyDateFieldInternalName gt '@{getPastTime(12, 'Hour')}'

GReat stuff here

https://www.sharepointnutsandbolts.com/2019/06/flow-filter-sharepoint-items-by-date.html

and here

https://www.flowug.com/communities/community-home/digestviewer/viewthread?GroupId=2273&MessageKey=58...

 

Not in my laptop, unable to test



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

jrod86
Frequent Visitor

Thank you!

ChristianAbata
Super User II
Super User II

hi @jrod86 you can try this..

 

getitems.PNG



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA
ajdhingr
Microsoft
Microsoft

@jrod86 - Please not that the date and time is always in UTC and if you still have the issue then please let us know.

@jrod86 

Thanx for your kindness! Please take note also of @ajdhingr advise, I just forgot to mention it! Thanx @ajdhingr for pointing it out and Happy Flowing to everybody!



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Users online (38,035)