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

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
Frequent Visitor

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
Highlighted
Community Support
Community Support

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

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?

Highlighted
Community Support
Community Support

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
Frequent Visitor

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

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,289)