cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
RyanLiu_99
Level: Power Up

How to refer result of "Filter array"?

Hi,

How to refer result of "Filter array"?

In next step I try to check fitter result's length. length(collection) function requires a input parameter.  How can I refer to the output of previous step of "Filter array"?   I tried few ways, always got syntax error message.

Thanks,
1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: How to refer result of "Filter array"?

Hey @RyanLiu_99 

 

The filter action returns the output in the body. To get the length, you can do something like this: 

 

dd31.PNG

 Expression: 

length(body('Filter_array'))

Here, Filter_array is the name of the action. 

 

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!

 

View solution in original post

2 REPLIES 2
Dual Super User
Dual Super User

Re: How to refer result of "Filter array"?

Hey @RyanLiu_99 

 

The filter action returns the output in the body. To get the length, you can do something like this: 

 

dd31.PNG

 Expression: 

length(body('Filter_array'))

Here, Filter_array is the name of the action. 

 

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!

 

View solution in original post

RyanLiu_99
Level: Power Up

Re: How to refer result of "Filter array"?

Works like charm!   Thanks a lot,

 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Kudoed Authors (Last 30 Days)
Users online (4,527)