Is it possible to download a document through documentDownloadLink and save on a local (better if writing on db) at the same time? With one click?
The need is to know if a document has been downloaded or not.
Discussion posts and replies are publicly visible
Appian tracks who downloaded which file. I see two options.
- /audit/file_attachment_downloads.csv
- The function getdownloadersfromgroup from the content tools plugin.
If you can increase it to 2 clicks it gets quite a bit simpler (one click to show the download link, a second click to download). As Stefan mentioned, it's not possible with one click unless you use one of the workarounds he mentioned.
Correct, For downloading the document we are using document download link in that we can not do database transactions. so, to do DB transactions we have to create dynamic link or Button action.
Hm ... I mean, the data is already there and waits for you to query it. Why the effort to somehow try to persist it somewhere.
BTW, I would be interested in the use case. pierpaolo.longobardi, can you help us?
Unknown said:Why the effort to somehow try to persist it somewhere.
...because programmatically querying the system-back-end log files is poorly supported, not very flexible, and thus generally a giant pain?
True, but depending on the use case, the plugin might be an option.
agreed - if it were me, that'd be my first approach path for this, as well. in fact I just used that function yesterday (as a one-off) to determine whether a certain user had downloaded a certain file, lol.
Thank you everyone, since our need was to store on DB if a user has downloaded a certain file, we will use the function getdownloadersfromgroup() after submission of the task. I don't see any other options for now.