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 / Issues with referencin...
Power Automate
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.
 
 
Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,916 Most Valuable Professional on at
    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 223

#2
David_MA Profile Picture

David_MA 195 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 167

Last 30 days Overall leaderboard