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

Top Solution Authors
Users online (29,322)