<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Download a document and save on a local at the same time?</title><link>https://community.appian.com/discussions/f/user-interface/25274/download-a-document-and-save-on-a-local-at-the-same-time</link><description>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.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Download a document and save on a local at the same time?</title><link>https://community.appian.com/thread/98245?ContentTypeID=1</link><pubDate>Fri, 22 Jul 2022 15:36:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1cbd2ed7-2477-4f06-a66f-406835e678c6</guid><dc:creator>pierpaolo.longobardi</dc:creator><description>&lt;p&gt;Thank you everyone, since our need was to store on DB if a user has downloaded a certain file, we will use the function&amp;nbsp;getdownloadersfromgroup() after submission of the task. I don&amp;#39;t see any other options for now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download a document and save on a local at the same time?</title><link>https://community.appian.com/thread/98185?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2022 18:50:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8016eee9-d0fd-4f48-bb31-4f69cbce1272</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;agreed -&amp;nbsp; if it were me, that&amp;#39;d be my first approach path for this, as well.&amp;nbsp; in fact I just used that function yesterday (as a one-off) to determine whether a certain user had downloaded a certain file, lol.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download a document and save on a local at the same time?</title><link>https://community.appian.com/thread/98184?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2022 18:49:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:68eb419e-b60a-433d-9b33-999ac345743b</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;True, but depending on the use case, the plugin might be an option.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download a document and save on a local at the same time?</title><link>https://community.appian.com/thread/98183?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2022 18:47:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:166eca41-4d5d-4564-bd32-a7844f931f96</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="59361" url="~/discussions/f/user-interface/25274/download-a-document-and-save-on-a-local-at-the-same-time/98182#98182"]Why the effort to somehow try to persist it somewhere.[/quote]
&lt;p&gt;...because programmatically querying the system-back-end log files is poorly supported, not very flexible, and thus generally a giant pain?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download a document and save on a local at the same time?</title><link>https://community.appian.com/thread/98182?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2022 18:45:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:167263d8-5378-4e73-80a1-b2142f7a4fdb</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;BTW, I would be interested in the use case. &lt;a href="/members/pierpaolol0001"&gt;pierpaolo.longobardi&lt;/a&gt;, can you help us?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download a document and save on a local at the same time?</title><link>https://community.appian.com/thread/98181?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2022 18:34:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:03e089b7-314d-42f0-bcef-71b1db8e2cb8</guid><dc:creator>deepakg271869</dc:creator><description>&lt;p&gt;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.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download a document and save on a local at the same time?</title><link>https://community.appian.com/thread/98179?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2022 17:48:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:413c98ae-983d-4cfe-bf6f-b37c9abe4d0c</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;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).&amp;nbsp; As Stefan mentioned, it&amp;#39;s not possible with one click unless you use one of the workarounds he mentioned.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download a document and save on a local at the same time?</title><link>https://community.appian.com/thread/98178?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2022 17:31:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:930b8c09-36e2-4c86-9a53-a0bfb0a9543c</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Appian tracks who downloaded which file. I see two options.&lt;/p&gt;
&lt;p&gt;- /audit/file_attachment_downloads.csv&lt;/p&gt;
&lt;p&gt;- The function&amp;nbsp;getdownloadersfromgroup from the content tools plugin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>