<?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 document and save the metadata</title><link>https://community.appian.com/discussions/f/user-interface/21885/download-document-and-save-the-metadata</link><description>Hi All, 
 My requirement is when I click on the download document link. I also need store some meta data in DB. 
 
 Metadata like who downloaded the document, time, document name, process variables etc. On click of the document download link two action</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Download document and save the metadata</title><link>https://community.appian.com/thread/85759?ContentTypeID=1</link><pubDate>Wed, 15 Sep 2021 06:35:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9eb03f28-f6d4-4dc0-9f8e-bf8e76ef1d91</guid><dc:creator>sais0002</dc:creator><description>&lt;p&gt;Found answer in this thread&lt;/p&gt;
&lt;p&gt;&lt;a href="/discussions/f/user-interface/13198/on-single-click-download-the-document-and-write-record-in-db"&gt;https://community.appian.com/discussions/f/user-interface/13198/on-single-click-download-the-document-and-write-record-in-db&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Others may benefit&lt;/p&gt;
&lt;p&gt;load(&lt;br /&gt; local!isShowDocument:false(),&lt;br /&gt;{&lt;br /&gt; a!linkField(&lt;br /&gt; label: &amp;quot;&amp;quot;,&lt;br /&gt; labelPosition: &amp;quot;ABOVE&amp;quot;,&lt;br /&gt; links: {&lt;br /&gt; a!dynamicLink(&lt;br /&gt; label:&amp;quot;Show Document&amp;quot;,&lt;br /&gt; value:true(),&lt;br /&gt; saveInto: {&lt;br /&gt; local!isShowDocument,&lt;br /&gt; /*We can perform the Write Operation here*/&lt;br /&gt; /* a!writeToDataStoreEntity(&lt;br /&gt; &lt;br /&gt; )*/&lt;br /&gt; },&lt;br /&gt; showWhen:not(local!isShowDocument)&lt;br /&gt; ),&lt;br /&gt; a!documentDownloadLink(&lt;br /&gt; label:&amp;quot;Download Document&amp;quot;,&lt;br /&gt; document:todocument(12345),&lt;br /&gt; showWhen:local!isShowDocument&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt; )&lt;br /&gt;}&lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download document and save the metadata</title><link>https://community.appian.com/thread/85756?ContentTypeID=1</link><pubDate>Wed, 15 Sep 2021 06:03:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9e9852a5-4cf5-4e5e-9858-d9ec925bac01</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;A document download link can not do this currently. You might need to do a two-step UI with a button you click to make the download link show up.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>