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

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

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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (74,228)