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

Filter array data with date condition not working without ticks

 

In filter array data i was using  condition with 2 dates coming from dynamic values but seems like filter array wasn;t honoring it after

lot of tries when i tried with ticks conversation it started working (returning correct results). Seems to be a bug in Flow action.

 

 

3 REPLIES 3
Community Support Team
Community Support Team

Re: Filter array data with date condition not working without ticks

Hi @ maheshkhisteLiv,

 

Could you please share a screenshot of the configuration of your flow?

 

Could you please explain more about the "filter array wasn;t honoring it after lot of tries when i tried with ticks conversation" that you mentioned?

Do you mean the filter array wouldn't work when you use condition with 2 dates coming from dynamic values? could you please explain more about the "ticks conversation"?

 

I have made a test on my side,and I have create a sharepoint list with two date type column as below:

Capture.PNG

 

The screenshot of the flow as below:

Capture.PNG

 

The flow would run successfully as below:

Capture.PNG

 

 

 

Regards,
Alice Zhang

Highlighted
bqkelley
Level: Power Up

Re: Filter array data with date condition not working without ticks

I might be having the same/similar issue. I am trying to use filter array to pull items from a sharepoint list if the column "Beginning Date" is within the past 15 days. Here's the code I put into the filter array:

 

@and(greater(item()?['Beginning_x0020_Date'], getPastTime(15, 'day', 'f')),lesser(item()?['Beginning_x0020_Date'], utcnow()))

 

 

The flow is running smoothly but the filter array output is blank:

 

[ ]

 

Through a manual check of the list there are 7 items which should have met this criteria. Is there a glitch or am I doing something wrong?

 

 

bqkelley
Level: Power Up

Re: Filter array data with date condition not working without ticks

However, converting the dates to ticks works:

 

@and(greater(ticks(item()?['Beginning_x0020_Date']), ticks(getPastTime(365, 'day', 'yyyy-MM-ddThh:mm:ss'))),less(ticks(item()?['Beginning_x0020_Date']), ticks(getPastTime(7, 'day', 'yyyy-MM-ddThh:mm:ss'))))

Helpful resources

Announcements
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,649)