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 Apps / Suggestions for effici...
Power Apps
Unanswered

Suggestions for efficiency - Fetching files from a specific folder in an FTP connection and transfering them to SharePoint

(0) ShareShare
ReportReport
Posted on by 19

I built an app in Power Apps that uses a Flow as logic. This Flow connects to a server through FTP, looks for a given folder, and goes through this folder (3 levels deep) looking for files, gets the content of each file, and creates a copy in SharePoint. The Flow I'm using seems very inefficient, but I'm too new in Power Apps and Flow (and inexperienced in programming) to come up with a better solution. The first thing I tried was to simply copy the whole folder, which would be ideal, but the FTP connector doesn't seem to allow for this (If I run a "get content" action over a folder, it'll fail).

The Flow first lists the files in the FTP root folder and uses an Apply to Each to look for a given folder matching a string (passed through Power Apps). When found, it uses another Apply to Each to check if each item in this folder is also a folder, if it's not a folder it gets the content of the file and creates a copy in SharePoint, if it is a folder, it loops through it and repeats this same loop one more time on itself, looking for files.

This Flow can take north of a minute with 6+ files. Most of the time there are 5 files and it takes 30-60 seconds, but there can be 20 or more. I was wondering, is there a more efficient way to achieve this? I've been thinking about creating a Flow that only creates a SharePoint file (passing the id in the FTP server and the path in SharePoint) and have Power Apps run several instances of it in parallel (can that even be done?), but I just barely figured out how to pass an array from Flows to Power Apps and I don't know how to make power Apps run the same amount of Flow instances as there are projects.

Any suggestion is much appreciated.

Thanks.

Categories:
I have the same question (0)

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard