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
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.
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

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

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!

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 Solution Authors
Top Kudoed Authors
Users online (4,427)