cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CruzBinet
New Member

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

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

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-alzhan-msft
Community Support
Community Support

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.

View solution in original post

1 REPLY 1
v-alzhan-msft
Community Support
Community Support

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.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,726)