<?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>Dynamic document generation and download</title><link>https://community.appian.com/discussions/f/user-interface/10744/dynamic-document-generation-and-download</link><description>HI All, 
 
 We have a requirement to generate a PDF document and download on click of a link. to generate the PDF we use Generate PDF smart service and this needs a process to be executed execute. 
 The issue we need to generate the document in-flight</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Dynamic document generation and download</title><link>https://community.appian.com/thread/128533?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2024 06:59:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:16645a48-217e-437b-b0ad-955738023aff</guid><dc:creator>Preji P</dc:creator><description>&lt;p&gt;Thank you very much Steven, above suggestion has worked for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic document generation and download</title><link>https://community.appian.com/thread/128515?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2024 16:52:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7fed6969-c482-4c7e-b53b-8fabd3b0ef87</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;You can try what steven mentioned but if it doesn&amp;#39;t work, try pasting your button&amp;#39;s code here for us to help you debug it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic document generation and download</title><link>https://community.appian.com/thread/128514?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2024 16:51:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2511e01-e810-44e0-8810-190829800414</guid><dc:creator>Steven Miccile</dc:creator><description>&lt;p&gt;Do you just need to replace&amp;nbsp;one of the a!save() parameters with&amp;nbsp;&lt;span&gt;fv!processInfo.pv.docId?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://docs.appian.com/suite/help/23.4/Start_Process_Smart_Service.html#syntax"&gt;docs.appian.com/.../Start_Process_Smart_Service.html&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic document generation and download</title><link>https://community.appian.com/thread/128442?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2024 05:27:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7daef20c-7451-450f-8681-e0076c277d65</guid><dc:creator>Preji P</dc:creator><description>&lt;p&gt;Yes I do have activity chaining enabled&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/Annotation-2024_2D00_01_2D00_30-105610.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic document generation and download</title><link>https://community.appian.com/thread/128422?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2024 18:32:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:79a0e9b0-2b49-4b2a-8f6e-06b0f21a94fc</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Do you have the chaining till the node that generates the DocID?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic document generation and download</title><link>https://community.appian.com/thread/128379?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2024 13:08:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f689bfd5-ebb6-4587-9bc4-105931d26404</guid><dc:creator>Preji P</dc:creator><description>&lt;p&gt;hi Mike,&lt;br /&gt;I have similar requirement as mentioned above in my case I have a nested SAIL form and the last form has this download option.&lt;br /&gt;Now I could successfully start PM to generate document but am not able to pass the DocID generated in the process model back to UI&amp;nbsp;&lt;br /&gt;Below you can see the code&amp;nbsp;snippet:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;saveInto: a!startProcess(&lt;br /&gt; processModel: cons!DQEM_PM_EXPORT_EXCEL,&lt;br /&gt; processParameters: {&lt;br /&gt; ScorecardReviewDetails: ri!summaryData,&lt;br /&gt; docId: local!documentId&lt;br /&gt; },&lt;br /&gt; onSuccess: {&lt;br /&gt; a!save(ri!document, local!documentId)&lt;br /&gt; }&lt;br /&gt; )&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you please help me identify the issue here.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Preji&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic document generation and download</title><link>https://community.appian.com/thread/68991?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2019 20:33:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b06c4380-0fbe-4124-9f3d-c00fd5565804</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Can you confirm whether the document creation processes are chained all the way through?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic document generation and download</title><link>https://community.appian.com/thread/68990?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2019 20:00:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9a11adee-009c-44e3-9006-7793ec66d5b0</guid><dc:creator>karthip0001</dc:creator><description>&lt;p&gt;Hi Mike, quick question related to a document creation.&amp;nbsp; After creating a document using a PDF template, I, as an admin user, am able to get the document id in the OnSuccess event of the process model.&amp;nbsp; But the users are not able to get to the document id in the same event.&amp;nbsp; It always returns null.&amp;nbsp; They are set up as Admins on the folders where the document resides.&amp;nbsp; The documents are showing up as created by them but yet the docid is null.&amp;nbsp; Any thoughts?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic document generation and download</title><link>https://community.appian.com/thread/47326?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 08:17:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a114d842-26e0-4e56-9d37-7a666a1aacc0</guid><dc:creator>sureshg57</dc:creator><description>HI Sravanis, &lt;br /&gt;
&lt;br /&gt;
At the moment Appian do not have capability to achieve above mentioned scenario via single click I&amp;#39;m afraid.&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
Suresh&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic document generation and download</title><link>https://community.appian.com/thread/47162?ContentTypeID=1</link><pubDate>Mon, 31 Jul 2017 04:15:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:61f7337b-4f44-4cfd-8d00-51cf0bdfd2d9</guid><dc:creator>sravanis</dc:creator><description>Hi Sureshg,&lt;br /&gt;
&lt;br /&gt;
Did you find the solution for the question?&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Sravani&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic document generation and download</title><link>https://community.appian.com/thread/46943?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 15:02:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8793e5f1-3d01-4383-a969-9fad80d268ca</guid><dc:creator>sureshg57</dc:creator><description>Thank you all for taking interest in the scenario and putting effort to come up with a solution. I have been doing more digging into this also but found that , unless we write a new plugin to do this there is no out of the box way as &lt;a href="/members/steven.miccile"&gt;Steven Miccile&lt;/a&gt;  mentioned. For now I have to live with 2 click to generate the document.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic document generation and download</title><link>https://community.appian.com/thread/46938?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 13:51:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:53ff599b-a651-476a-a27f-6b3f049ccba8</guid><dc:creator>Mike Schmitt</dc:creator><description>Oh, yes I agree - I must have misunderstood or overlooked that part of OP&amp;#39;s requirement - as you say it would at least take 2 clicks as far as I know.  &lt;br /&gt;
&lt;br /&gt;
However the fact that it CAN be done now in 2 clicks is tremendously better than in older versions (back when my team was asked to provide something like this but it was basically impossible).  And I&amp;#39;m hoping the OP&amp;#39;s client might find this to be a reasonable compromise.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic document generation and download</title><link>https://community.appian.com/thread/46937?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 13:47:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e37dfe25-3c4f-4c85-b789-92457d360149</guid><dc:creator>Steven Miccile</dc:creator><description>&lt;p&gt;I understand that you can generate the document in that model and potentially pass the generated doc id back to the interface, but the use case from the post is also to download the document without the user having to make another click. Once you have passed the document id back to the interface, you would have to generate a SAIL link for the user to make another click. Did you have a way to do the document download without another click from the end-user?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic document generation and download</title><link>https://community.appian.com/thread/46935?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 13:38:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7ad950d1-1e05-4eec-b219-3698e26b7351</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;In my brief live test before writing my prior comment, I quickly created a new process model with one script task node which sets a value to a particular PV, and what I found is that this value is passed back to the SAIL form successfully in the onSuccess() parameter of a!startProcess. &lt;br /&gt; &lt;br /&gt; Assuming this extrapolates out to running the process through some doc generation, it seems like it would work as needed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic document generation and download</title><link>https://community.appian.com/thread/46931?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 12:52:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6f281b31-8e1f-4928-a2ec-7b9f8fd9095e</guid><dc:creator>Steven Miccile</dc:creator><description>I am not sure you will be able to generate the document and serve it to the user&amp;#39;s browser in one click without writing a plugin similar to Excel Tools&amp;#39; download datasubset functionality.&lt;br /&gt;
&lt;br /&gt;
The normal design pattern here is as you and Mike mentioned, which is to request the document is generated with one click then show a subsequent link to download the document. Another thought is to generate the PDFs ahead of time (i.e. when each row that backs the report is entered rather than viewed later), but that requires extra considerations as load and complexity (data updates, etc.) can easily make this a bad fit for the use case.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic document generation and download</title><link>https://community.appian.com/thread/46895?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2017 19:00:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b6b747db-b43d-4998-a6d7-090120e3fbe7</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;In 17.2 at least, you can use a!startProcess to launch a process model which will do your PDF generation, and pass back the generated doc ID to your SAIL form.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>