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

Get Items - Array Length

Hi all,

 

I created a Flow which generates a HTML table from values from the Site Pages. This works fine except I don't want it to trigger if there's no items? If there's no items, the array contains nothing but I can't figure out how to get the Condition to fire on an empty array? First image is in test mode.

 

Flow1.JPGFlow2.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Get Items - Array Length

Hi @DaithiG 

 

Please see the screenshots below: 

ddwr.PNG

 

ddww.PNG

Expression: 

empty(variables('test'))

 

Here i created an empty array and am checking if it is empty in the condition box. 

 

Note that, you need to add the true also in the expression editor (so it takes that as a function)

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

1 REPLY 1
Super User
Super User

Re: Get Items - Array Length

Hi @DaithiG 

 

Please see the screenshots below: 

ddwr.PNG

 

ddww.PNG

Expression: 

empty(variables('test'))

 

Here i created an empty array and am checking if it is empty in the condition box. 

 

Note that, you need to add the true also in the expression editor (so it takes that as a function)

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow 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 Flow Community Video Gallery!

Users Online
Currently online: 358 members 4,959 guests
Please welcome our newest community members: