Skip to main content

Notifications

Power Automate - General Discussion
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

 

 

  • Verified answer
    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard