cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (66,724)