Skip to main content
pierpaolol0001
July 21, 2022
Question

Download a document and save on a local at the same time?

  • July 21, 2022
  • 8 replies
  • 0 views

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.

8 replies

stefanhelzle0001
Brainy
July 21, 2022

Appian tracks who downloaded which file. I see two options.

- /audit/file_attachment_downloads.csv

- The function getdownloadersfromgroup from the content tools plugin.

mikes0011
Brainy
July 21, 2022

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.

The Expression Guru
July 21, 2022

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.

stefanhelzle0001
Brainy
July 21, 2022

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. [mention:37c57cf95dd64be9bdd8aad091affc6a:e9ed411860ed4f2ba0265705b8793d05], can you help us?