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 / Help building a flow t...
Power Automate
Unanswered

Help building a flow to copy file from OneDrive to SFTP

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a flow that creates a new file in OneDrive Business from an EMail attachment I receive each day. Works fine!   

Now I want to SFTP that file, each time a new file is created in the OneDrive folder, to AWS SFTP E2 instance.   I receive the file at 4:00 AM each morning but the AWS connection is not open until 7:00AM so I will need to delay the copy of the file to AWS until the connection is open.  Would I use "When a file is created" -> "Delay until" -> "Get file content" -> "Create File SSH" Keep in mind that the filename changes each day to include the current date.    Thank you 

 

Any help is much appreciated.  

Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @Anonymous ,

     

    Could you tell us where you are stuck? It seems that you have taken the appropriate steps to configure Flow.

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    The SFTP-SSH gets a message "Test connection failed.  Details: BadGateway".  When I use terminal and manually enter commands it works.  

  • v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @Anonymous ,

     

    Please refer to this article and see if it helps:

    https://blog.neilsabol.site/post/microsoft-ms-flow-sftp-connector-tips-tricks-errors/

     

    Best Regards,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard