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

Picking a certain value from the output of the previous loop step

Hi all , 

 

I am using a select operation to map certain fields and records from a SQL Table into a array variable which works fine.

Gautham001_1-1610642229852.png

 

 

However i want to pick only a certain field from the record(from the output of the select operation) into a variable.

Can anyone help me out on writing an expression for this , i tried and failed.

 

Example : 

 

Consider this as the output of one of the cases in a run(usually there's more than one case for each run of a flow)

Gautham001_0-1610642174947.png

 

I would like to add the field "RowCount" into a variable for further purposes.

 

I assume i need to write an expression in the value field of the variable like : outputs('StringOperationStepName')?['FieldName']

But i'm not sure , i just need to take the value from that record/output into a variable. Note : Multiple cases would be there so i will set the variable to null at the end each time to avoid concatenation.

 

Thanks for any help!

 

 

 

1 REPLY 1
PrasadAthalye
Super User
Super User

Are you looking for something like below?

 

PrasadAthalye_0-1610655947192.png

 

expression I used is --> 

body('Select')[0]['CountryCode']
Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

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.

Top Solution Authors
Users online (2,566)