Hi Team,
I have a requirement where a user clicks a document download link (using a!documentDownloadLink()), and the document downloads normally. However, I also need to capture some backend audit details, such as:
a!documentDownloadLink()
isDocumentDownloaded = true
The challenge is that the user is only clicking the download link — there are no additional buttons or actions that trigger a process model or write to a database.
I also understand that download links do not directly trigger process models or write events, so I cannot perform backend logging from the link itself.
Is there a best way to achieve this requirement, or any recommended alternative pattern to track the user and timestamp when a document is downloaded?
Any guidance, suggestions, or example patterns would be appreciated.
Thanks in advance!
Discussion posts and replies are publicly visible
Thank you Harsha Sharma and Shubham Aware for your valuable replies!I really appreciate the workarounds and suggestions you shared. These approaches look helpful, and I will definitely try them out in my use case.Thanks again for taking the time to respond!