HI ALL:
I upload my jpg file with powerapps , and save it in sharepoint list item attachment .
Now I want to delete one of the jpg file in attachments with powerapps , so how could I delete it ???
I use this two methods , but not works~~~
1-->Remove('For-pic-upload',(LookUp('For-pic-upload',Title=Dropdown1.Selected.Title).Attachments).DisplayName) in ThisItem.DisplayName
2-->RemoveIf('For-pic-upload',DisplayName=ThisItem.DisplayName)
Solved! Go to Solution.
HI ALL:
I found the answer !!!
NO 1 :
form mode is "Edit"
NO 2 :
Form "item"
NO 3 :
keypoint is submitform() and resetform()
Finally , I can modify it (add jpg , del jpg ) then click sumbit , so I can get what I want !!!
Hello @JACK_LAI_1117,
You can Add Attachment field in Powerapps, there we can easily remove the attachment easily. Let me know if you need any moe help to assist you.
Please Mark as Answer if it's helpful
Subscribe : https://youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
Blog : https://microsoftcrmtechie.blogspot.com
If you have a form built on the SharePoint list and navigate to that record, you will see attachments to delete. I assume you are looking at a Gallery based on the list as Datasource. So create a form that is based on the selected item and simply only show attachments. Then they can be removed
Just adding to @leyburn19's and @rampprakash's comments - you cannot delete attachments programmatically in Power Apps. This only way would be via Power Automate as below and send the relevant values.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
HI ALL:
I still want to use form to attachment . This is my step !!!
NO 1 : in this sharepoint item has two jpg file
NO 2 : I delete dafadsfsa.jpg and add " new-comer.jpg"
NO 3 : I click "Button " , this is my code
NO 4
After I click , I find in my sharepoint item , only have newer jpg file , but the old one jpg file will gone ~~~~~
So , I think this is config in forms or powerapps .....Which config sholud I modify ???
HI ALL:
I found the answer !!!
NO 1 :
form mode is "Edit"
NO 2 :
Form "item"
NO 3 :
keypoint is submitform() and resetform()
Finally , I can modify it (add jpg , del jpg ) then click sumbit , so I can get what I want !!!