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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / sFTP Copy only the lat...
Power Automate
Unanswered

sFTP Copy only the latest Files?

(0) ShareShare
ReportReport
Posted on by 20

Hi all,

 

Everyday different reports are exported with date and time stamp to the root folder of FTP server. Files never get deleted and now has thousands of reports. Example of report files:

 

Report_20240404_05_01_40_AM.csv

FinalReport_20240404_05_09_42_AM.csv

IntrimReport_20240404_05_15_42_AM.csv

MonthlyReport_20240404_05_20_42_AM.csv

 

How can I add filter to only pick up the latest reports (ONLY file name starting with Report_ & FinalReport_) for me to copy to a different folder. Due to number of historical reports "List files in folders" is taking 20+ mins to run.

 

Is there a quick way to avoid looping through all the reports and get the copy latest Report_ & FinalReport_ reports?

 

Many thanks in advance.

 

Mitesh 

 

Categories:
I have the same question (0)
  • Verified answer
    MitsChauhan Profile Picture
    20 on at
    Re: sFTP Copy only the latest Files?

    Got it working - Here is my solution and hope it helps anyone. 

     

    MitsChauhan_0-1712568731303.png

     

  • GH-14051506-0 Profile Picture
    2 on at
    sFTP Copy only the latest Files?
    Is it just me who can't make out how any of the screenshots on these pages are helpful? I see a yellow rectangle, two violet rectangles...
     
    You can't even open the image in a new tab in hopes that it is higher rez, it's just blurry. How do we view these uploaded images at anything better than thumbnail resolution?

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

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard