web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to use variables i...
Power Automate
Answered

How to use variables in place of hardcoded indexes

(0) ShareShare
ReportReport
Posted on by 30

Hello everyone,

I'm new to power automate desktop, I'm trying to get a value from datatable using indexes. but in place of hardcoded indexes I want to use variables.

Here is the expression I'm using %dt[%row_index%][%column_index%]% However i'm getting syntax error.

Can anyone please help me with the correct syntax to use above expression.


Thanks,
Karthik

Categories:
I have the same question (0)
  • Verified answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @Karthik23 

     

    This is correct syntax

     

    %dt[row_index][column_index]%

     

    Hope it helps !

     

     

  • Karthik23 Profile Picture
    30 on at

    Hi @Nived_Nambiar, I tried the expression you provided. But I get a error: Variable 'dt_PLU_Dump' doesn't have a property '6'.

    When I hardcode the Indexes then I'm able to get expected value.  However when I'm dynamically passing the indexes using variables I'm getting above error.

    Regards,
    Karthik.

  • Verified answer
    Karthik23 Profile Picture
    30 on at

    I figured it myself. I converted the variable to integer and it worked.

    Thank you for the syntax @Nived_Nambiar.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard