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 : LrE/SyAdgYPIx5u9YOMZfZ
Power Automate - Using Connectors
Answered

Delete Files after New file is added to an SFTP and Copy to SharePoints

Like (0) ShareShare
ReportReport
Posted on 31 Jan 2020 14:51:48 by 1

I am trying to create a flow that copies the file to SharePoint when a new file is added to an SFTP server and then deleted the file from the SFTP folder. So far I have tried the following, the flow copy or create the file but not delete file in sftp

 

Thank you for the Help.  

Capture1.PNG

 

 

  • Verified answer
    v-alzhan-msft Profile Picture
    on 03 Feb 2020 at 03:28:27
    Re: Delete Files after New file is added to an SFTP and Copy to SharePoints

    Hi @CruzBinet ,

     

    The "delete file" action require a "unique id" of the file instead of the File name.

    You should use the trigger "When files are added or modified (properties only)" of sftp connector, the trigger "When files are added or modified (properties only)" of sftp connector would have a "Id" dynamic content for you to use to delete the file. And you could add a "Get file content" action to get the file content and create the file in the sharepoint.

     

    Best regards,
    Alice       
     
    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Featured topics

Loading complete