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

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

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

 

 

 

DTO
Regular Visitor

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

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (3,701)