I have a powerapps form with SharePoint as the backend. I am using attachments control in Newform which stores the document in document library via power automate.
Below is the code for NewForm submit button
ForAll(
DataCardValue10_5.Attachments As file,
'UploadApprovaltoDocLib'.Run(
{
contentBytes: file.Value,
name: file.Name
},
DataCardValue3_5.Text,DataCardValue15_1.Text
)
);
If user resubmits the same request via resubmit form and then removes one of the attachment, the same attachment should get deleted from the document library as well. If user deletes Sample.pdf from the resubmit form, it should delete the same from the doc lib as shown in below screenshot. May i know how to achieve this?

Report
All responses (
Answers (