Hey Guys, I have canvas app in team which saves attachments into a related table when the user submits the edit form (Patches at OnSuccess). The attachments control displays the patched attachments from the related table and also allows the users to add addition file. I want to be able to use this attachment control to remove the selected attachment within this control using the X icon.
I saw that there is a property call OnRemoveFile which I tried the following formula to remove the selected attachment, but it shows me errors
Remove(IDRRFISupportingDocs, ThisItem)The error that I'm getting is
Does anyone know how I could overcome this error with the correct formula to use? For the Items Property of the Attachment Control I have
ForAll(Filter(IDRRFISupportingDocs, IDRRFITable.IDRRFITable = BrowseGallery1_2.Selected.IDRRFITable). Documents, {DisplayName:ThisRecord.Documents.FileName, Value:ThisRecord.Documents.Value})Any Help will be appreciated.


Report
All responses (
Answers (