cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pub
Level: Power Up

New to Flow

Yesterday I made a Flow that is working fine. The flow: when a file is created in a SharePoint folder, create that file (using the file name and content from the newly created file) in a OneDrive folder. I'm unable to find an applicable Flow action that, using the same SP-OD folder relationship, will delete a file in OneDrive when it is deleted in SharePoint. Am I overlooking an action? I don't see any appropriate action. 

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: New to Flow

Unfortunately, right now this isn't really possible.  The normal process would be to retrieve the filename and path from the File Delete trigger and use that to get hte file identifier in OneDrive.  Once you have the identifier you could delete the file in OneDrive. The problem is that right now the Delete Trigger doesn't return any really usable information due to some security issues. So there is no way to get the name of the file deleted in SharePoint.  Without that you don't know which file to delete in OneDrive.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
Dual Super User
Dual Super User

Re: New to Flow

Unfortunately, right now this isn't really possible.  The normal process would be to retrieve the filename and path from the File Delete trigger and use that to get hte file identifier in OneDrive.  Once you have the identifier you could delete the file in OneDrive. The problem is that right now the Delete Trigger doesn't return any really usable information due to some security issues. So there is no way to get the name of the file deleted in SharePoint.  Without that you don't know which file to delete in OneDrive.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

pub
Level: Power Up

Re: New to Flow

I guess I'll have to see if teh sync product will do teh trick. Thanks for the information.

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Coming Soon: T-shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors
Users online (5,958)