cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BrokenClock
Helper I
Helper I

Composing a paramter name inside a function

I'm grabbing elements from different columns in a loop, and columns are named Student1, Student2, Student3.... Student8

BrokenClock_0-1657096860182.png

I'm wondering whether I could avoid hardcoding the number in the expression, and instead use my loop counter:

Or something of the sort.

 

int(outputs('Get_a_row')?['body']?['Student'variables('LoopCounter)])


I can't get the syntax to work, because I'm not very experienced and I'm having a hard time finding the right search keywords for a web-search. One solution (inelegant) was to set a variable before that step to compose the name of the column, but it'd really want to avoid adding extra connectors if I can avoid it.

1 ACCEPTED SOLUTION

Accepted Solutions

Thanks a lot 🙂
concat seems to be what I had been looking for, and everything works fine now 🙂

int(outputs('Get_a_row')?['body']?[concat('Student',variables('GroupMemberCounter'))])

View solution in original post

2 REPLIES 2
max81
Impactful Individual
Impactful Individual

Thanks a lot 🙂
concat seems to be what I had been looking for, and everything works fine now 🙂

int(outputs('Get_a_row')?['body']?[concat('Student',variables('GroupMemberCounter'))])

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (1,349)