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!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (2,934)