How to track document downloads (user + timestamp) when using a document download link?

Certified Associate Developer

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:

  • isDocumentDownloaded = true
  • Which user downloaded the document
  • The date and time when the document was downloaded

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

Parents Reply Children
No Data