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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to retrieve an ite...
Power Automate
Answered

How to retrieve an item from a list using a variable as index? (Power Automate Desktop)

(0) ShareShare
ReportReport
Posted on by 4

Hello, I am currently having an issue where I cannot retrieve a value from a list using a number variable. For context, I am looping through a folder, which means that the folder_index variable changes each time the loop ends. I can confirm that if I replaced the folder_index variable with any number, I do not get any errors. Ive also confirmed that the index is indeed a number, I am just unsure what would be the correct syntax for this. I would also appreciate any other methods

ToppyTopology_1-1717121237566.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @ToppyTopology ,

     

    Please try this

    %files[folder_index]%

     

    Best Regards,

    Wearsky

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 550

#2
Valantis Profile Picture

Valantis 390

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard