cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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

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

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.

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?

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.

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Top Kudoed Authors
Users online (11,864)