
Announcements
Hi,
I've changed the OnAddFile property of the attachments control to the following code:
ClearCollect(AttachmentCollection;{AbsoluteUri:" ";DisplayName:" ";Id:" ";Name:" ";Value:" "});;
Collect(AttachmentCollection; DataCardValue32.Attachments);;
RemoveIf(AttachmentCollection;Id=" ");;
Patch(AttachmentCollection;Last(AttachmentCollection);
{Name: "test";
DisplayName: "test"}
);;
Set(varCode; "test")
and the Update property of the datacard to AttachmentCollection.
After these changes, the OnRemoveFile and the OnUndoRemoveFile stopped working.
I'd appreciate any help on this.
Hi @Anonymous ,
What formulas are in the OnRemoveFile and the OnUndoRemoveFile properties?
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.