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

Notifications

Announcements

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,195 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard