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

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

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
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Users online (3,526)