<?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>How should I first generate, then download the document by clicking the link that starts this process?</title><link>https://community.appian.com/discussions/f/integrations/35547/how-should-i-first-generate-then-download-the-document-by-clicking-the-link-that-starts-this-process</link><description>Hello, I have the following code that calls an integration and it returns a file which saves in the file local variable. 
 I must be able to click the same link then generate and download the file stored in local!file 
 
 integration: 
 
 
 What solution</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How should I first generate, then download the document by clicking the link that starts this process?</title><link>https://community.appian.com/thread/138619?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 17:15:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:46ec6df2-51b6-4bea-a164-ec267fde3031</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Assuming the user doesn&amp;#39;t need to provide any input first that the document generation would depend on, then this should be possible by setting the value of the local variable holding the document ID to the integration that runs its generation process and returns the generated doc ID.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How should I first generate, then download the document by clicking the link that starts this process?</title><link>https://community.appian.com/thread/138618?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 16:47:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b3b97f7c-346c-4d14-94db-500e20cb3aa0</guid><dc:creator>Silas. B. Ferreira</dc:creator><description>&lt;p&gt;what if I want to generate the document when the page loads and then use the click to only download it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How should I first generate, then download the document by clicking the link that starts this process?</title><link>https://community.appian.com/thread/138617?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 16:42:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ca482ef9-fe0b-47f7-995c-eddef65926b6</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Generally this is only easily accomplished via a 2-click approach - the first click fires off integration call which saves the generated doc ID into a local variable, and then your interface provides a download link (via a!documentDownloadLink()) after the ID is populated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How should I first generate, then download the document by clicking the link that starts this process?</title><link>https://community.appian.com/thread/138599?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 14:13:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ca4c0787-8c39-46df-8a22-d729d814d843</guid><dc:creator>Silas. B. Ferreira</dc:creator><description>&lt;p&gt;This is my integration response&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/18/pastedimage1721830414466v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;this is where i get its response, and expect to download as well&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/18/pastedimage1721830503564v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>