Skip to main content

Notifications

Community site session details

Community site session details

Session Id : MVzhG5HZg3mKuDDhURDNWT
Power Automate - General Discussion
Answered

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

Like (0) ShareShare
ReportReport
Posted on 31 May 2024 02:17:59 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

 

 

  • Verified answer
    v-xiaochen-msft Profile Picture
    on 31 May 2024 at 02:27:44
    Re: How to retrieve an item from a list using a variable as index? (Power Automate Desktop)

    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

Thomas Rice – Community Spotlight

We are honored to recognize Thomas Rice as our March 2025 Community…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,508 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,440 Most Valuable Professional

Leaderboard
Loading started
Loading complete