Hi
I have designed a Canvas app for customer records tracking with Gallery and Form with file attachment control.
On left hand side I have Gallery with customer names and on right hand side form.
The form is linked to gallery so user can select customer names from gallery and view customer record in form.
The form has customer name, address, other details and file attachment control.
I am allowing user to add/remove one or multiple files and save the attachments to dataverse when user submit the form.
User can add one or multiple files to each customer record form attachment control and save the form.
User can add/remove one or multiple files from each customer record and save the record form.
I am keeping track of audit trail of total files attached, file names and file attachment timestamp by each user and savin it in data table and showing these details on HTML text control.
I am struggling with specific 2 scenarios:
a) I am unable to keep track of the user activity when user removes one or multiple files from the Form attachment control and does not save the form intentionally/unintentionally and navigate to another screen of the application.
b) I am unable to keep track of the user activity when user removes one or multiple files from the Customer A record Form attachment control and does not save the form intentionally and select another customer (Customer B, C, D, n,) record from the customer gallery and repeat the (b) activity one or multiple times.
In both (a) and (b) situation, I am unable to find out which specific user removed the file and how many files are removed from each customer records by user from attachment control and timestamp of file(s) removal.
I experimented with OnRemoveFile function of file attachment control and unable to solve the (a) and (b) issues.
Request: Any ideas, suggestion, workarounds or advice will be appreciated.
@WarrenBelz @LaurensM @Drrickryp @iAm_ManCat