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

Deal with empty Filter array

Hello

 

I have a Filter array which have one item when it's true and none when its false. I'am trying to make an update when it has an item and create new item when array is empty, but it seems not to work.  How can i set a condtion where it is false when the array output is empty [] ?

 

What am i missing?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Bergur
Level: Powered On

Re: Deal with empty Filter array

Hey again.

 

Got it to work. It deleted my flow and stated from scrathc again. I'am sure the fault was, mr using some fields from get_items to the Crete new task. 

 

I found this article, which gave me som basic understanding.

https://flow.microsoft.com/en-us/blog/copying-using-filtering/https://flow.microsoft.com/en-us/blog/copying-using-filtering/

 

View solution in original post

4 REPLIES 4
Community Support Team
Community Support Team

Re: Deal with empty Filter array

Hi @Bergur ,

 

Please use empty() function to determine if the array is empty.

Image reference:77.PNG

 

78.PNG

 

Hope it helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Bergur
Level: Powered On

Re: Deal with empty Filter array

Thank you for youre answer. I have done just like you suggest, but it dosent work for me.
The problem seems to be when the array is empty.

 

The condition is running inside a loop, and it looks like it newer gets executed, when the array is empty?

Community Support Team
Community Support Team

Re: Deal with empty Filter array

Hi @Bergur ,

 

Could you share the full screenshot and details of Flow configuration?

 

Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Bergur
Level: Powered On

Re: Deal with empty Filter array

Hey again.

 

Got it to work. It deleted my flow and stated from scrathc again. I'am sure the fault was, mr using some fields from get_items to the Crete new task. 

 

I found this article, which gave me som basic understanding.

https://flow.microsoft.com/en-us/blog/copying-using-filtering/https://flow.microsoft.com/en-us/blog/copying-using-filtering/

 

View solution in original post

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

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

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 (8,829)