cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Dual Super User III
Dual Super User III

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
Highlighted
Dual Super User III
Dual Super User III

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

Highlighted
New Member

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

Works like charm!   Thanks a lot,

 

Helpful resources

Announcements
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (10,695)