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

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (6,024)