cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

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
Community Support

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

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

Top Solution Authors
Users online (8,848)