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 / FTP List files in fold...
Power Automate
Unanswered

FTP List files in folder - putting filenames into array variable

(0) ShareShare
ReportReport
Posted on by 13

I need to get a list of FTP files into an array of filenames only. I don't care about any other data in the array of BlobMetadata (https://docs.microsoft.com/en-us/connectors/ftp/#array-of-blobmetadata).

 

RicFischer_1-1630348430508.png

 

Categories:
I have the same question (0)
  • Verified answer
    Ellis Karim Profile Picture
    11,681 Super User 2025 Season 2 on at

    He is one approach to store a list of all the files of an FTP folder into an array:

    ekarim2020_0-1630351323242.png

    Sample output: [ "100KB.zip", "1KB.zip", "1MB.zip", "512KB.zip" ]

    Ellis

  • RicFischer Profile Picture
    13 on at

    Thank you.

     

    However, I don't know how to filter the resulting array. What should I put in the "Choose a value" box? The Dynamic Content picker doesn't seem to let me pick an element of my FTP Files Array variable.

     

    RicFischer_0-1630352533882.png

     

  • Verified answer
    Ellis Karim Profile Picture
    11,681 Super User 2025 Season 2 on at

    There are several ways to achieve this. We'll can try the easier methods:

    ekarim2020_2-1630354264737.png

    item() needs to be entered as an expression in the expression editor.

    Or click Edit in advanced mode and enter the expression as you see below (this avoids using the expression editor):

    ekarim2020_4-1630354442817.png

     

    Or use a condition statement:

     

    ekarim2020_1-1630353471919.png

    Which will give you an array :

    ekarim2020_5-1630354615618.png

     

    Ellis
     

     

  • RicFischer Profile Picture
    13 on at

    I'm trying your first method because every day (this Flow will be execute once a day), this FTP file list is about 3800 files and I think that might be the quickest method.

     

    Thank you for your help!

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard