Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Issues with referencing a particular variable in an array with PowerFX enabled

(1) ShareShare
ReportReport
Posted on by 55
I am getting a list of files in a folder and storing them into a variable named Files
 
This works well and as designed, and I can see all the files in the folder.
 
The issue comes in when I try to reference the first item in the array Files[0]
 
I've tried:
 
=Files[0]
=$Files[0]
=%Files[0]%
 
I get a series of different errors and cannot seem to be able to select that item.
 
 
  • Verified answer
    Expiscornovus Profile Picture
    31,844 Most Valuable Professional on at
    Issues with referencing a particular variable in an array with PowerFX enabled
    Try to use an index function for that:
     
    Below is an example
     
    =Index(Files,1).Name
     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492