cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RyanLiu_99
New Member

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
yashag2255
Dual Super User II
Dual Super User II

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
yashag2255
Dual Super User II
Dual Super User II

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!

 

Works like charm!   Thanks a lot,

 

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (2,129)