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 / Delete Files after New...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on 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

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-alzhan-msft Profile Picture
    on at

    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

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard