cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DTO
Regular Visitor

Variable for array index

Hey All,

 

This is seemingly simple, but I can't quite figure how to put this in PAD.  I have retrieved a column of data and set it as an array list using the retrieve data table column into list.  Now I need to run a set of instructions, but want to refer to the index in the array like this: %ColumnAsList[%rownum%]%. This throws an error in the syntax. Is there a way to put a variable as the index value?

 

So for clarification, there is a variable %rownum% that is a number, let's say 0 and if you put %ColumnAsList[0]%, you'll get a value for that row in the array list. I'm trying to put the variable to define the index number I want to retrieve.

1 ACCEPTED SOLUTION

Accepted Solutions
VJR
Solution Sage
Solution Sage

Hi @DTO 

 

As per the below documentation link the syntax is as %ColumnAsList[RowNum]%

Variable data types - Power Automate | Microsoft Docs

 

VJR_0-1634723811427.png

 

 

 

View solution in original post

2 REPLIES 2
VJR
Solution Sage
Solution Sage

Hi @DTO 

 

As per the below documentation link the syntax is as %ColumnAsList[RowNum]%

Variable data types - Power Automate | Microsoft Docs

 

VJR_0-1634723811427.png

 

 

 

View solution in original post

DTO
Regular Visitor

Perfect! I couldn't find that. Thank you so much!

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!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,560)