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

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

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

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
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!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (6,306)