Showing results for 
Search instead for 
Did you mean: 
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.




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)



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!




Super User
Super User

Are you looking for something like below?




expression I used is --> 

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

Helpful resources

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)