cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
freedumz
Level: Powered On

delete OneDrive files

Hi everyone

I'm trying to delete a one drive file

So this is a copy of my flow:

 

Untitled.png

 

So here, Each time, I got an error for my delete file step

So the idea, when I get a mail, it is saved on my drive, after that I get a notification on my phone for an approval, If I approve a get a confirmation message(this part works) and the other side if I reject the file, I want to remove it so any idea why it doesn't work?

 

 

1 REPLY 1
Highlighted
Community Support Team
Community Support Team

Re: delete OneDrive files

It is the file path that won't work.

For OneDrive connector to locate the proper file, you would need to 'Select ' the proper file, the connector will not take the dynamic content (combined with fiel path) as the availabe input.

 

You need to choose the File identifier generated from the create File action.

52.PNG

 

Adding the OneDrive for Business connector for reference:

https://docs.microsoft.com/en-us/connectors/onedriveforbusiness/

 

"

Delete file

This operation deletes a file.

Required Parameters

File
string
The unique identifier of the file.

"

Regards,

Michael

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

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

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!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (4,570)