cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
r96359
Helper IV
Helper IV

Help Extracting Value from Filter Array (produces 1 record) to use in a "Apply to each" situation as a string

Really appreciate anyone's help!

 

I have json code produced as a result of a Filter Array.

I really just need the matching value.

How can I use compose or any other function to just extract US6X in the example below?

 

1.PNG2.PNG3.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
efialttes
Super User
Super User

Hi!

 

As you got a single element in Filter Array output, you can use the following expression:

first(body('Filter_array'))?['CompanyCodes']

 

Hooe this makes sense



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

2 REPLIES 2
efialttes
Super User
Super User

Hi!

 

As you got a single element in Filter Array output, you can use the following expression:

first(body('Filter_array'))?['CompanyCodes']

 

Hooe this makes sense



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

Many Thanks @efialttes !

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Top Solution Authors
Users online (2,893)