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
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 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.

Top Solution Authors
Users online (2,385)