cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Function to remove attachments on Sharepoing

Hello all,

 

I am facing the same problem for a few hours and I haven't found any help here on the comunity.

I am using a form to save data on a sharepoint list along with an attachment file regarding a user. I want some function that enables me to remove the attachment file stored in a record without deleting the record itself. I know I can do it through the form but my goal is to do it through a button which will update the filds of name to "dummy" and delete the attachment associated to the record. Using the Patch function I am able to update the fields to "dummy", however I have not find a way to delete the attachment associated to the record...

So far I have figured out that the record.Attachments is a table with four fields: AbsoluteUri, Display Name, Id and Value. If the record doesn't have any attachment this fields are blank. My goal is to delete this attachment from the Sharepoint using some function. Do you have any suggestion?

 

The remove function remove all the data and I just want to update fields (already I have done it) and delete the attachment file.

 

Regards,

Pedro Pereira

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Function to remove attachments on Sharepoing

Hi @PedroPereira ,

Do you want to delete the attachments by clicking a button?
I'm afraid it's not supported currently in PowerApps.

For now, you coul only change/add/delete the attachments in the Attchments control.

I suggest you express your views about adding more ways to manage attachments on PowerApps Ideas Forum. Your precious feedback will be very helpful for our work.

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

 

Best regards,

Community Support Team _ Phoebe Liu
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
Highlighted
Community Support
Community Support

Re: Function to remove attachments on Sharepoing

Hi @PedroPereira ,

Do you want to delete the attachments by clicking a button?
I'm afraid it's not supported currently in PowerApps.

For now, you coul only change/add/delete the attachments in the Attchments control.

I suggest you express your views about adding more ways to manage attachments on PowerApps Ideas Forum. Your precious feedback will be very helpful for our work.

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

 

Best regards,

Community Support Team _ Phoebe Liu
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
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,288)