cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Bahalzamon
Level: Powered On

Flow Query Filter Date Range

Basically I am doing a Get Items and attempting to filter the data based on a date range. I have come across MANY different suggestions and have attempted them all with no luck.

 

Here is what I am working with:

From Date: Date Only

To Date: Date Only

 

The Get Items works properly with no query and returns everything, but I want to filter based on passed in dates.

 

Here is how it currently looks:

image.png

 

I have tried many different options for converting the date values such as datetime'fromDate' with no luck.

All I recieve is the filter is not valid.

 

Thanks for any help. 😃

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Bahalzamon
Level: Powered On

Re: Flow Query Filter Date Range

After about a week of messing with it I make a post and figure it out 15 minutes later lol

 

Here is what it ended up being:

From Date: 

formatDateTime(triggerBody()?['From'],'yyyy-MM-dd')

To Date: 

formatDateTime(triggerBody()?['To'],'yyyy-MM-dd')

image.png

View solution in original post

1 REPLY 1
Highlighted
Bahalzamon
Level: Powered On

Re: Flow Query Filter Date Range

After about a week of messing with it I make a post and figure it out 15 minutes later lol

 

Here is what it ended up being:

From Date: 

formatDateTime(triggerBody()?['From'],'yyyy-MM-dd')

To Date: 

formatDateTime(triggerBody()?['To'],'yyyy-MM-dd')

image.png

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 177 members 5,852 guests
Please welcome our newest community members: