<?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>Generate download link when clicking on button</title><link>https://community.appian.com/discussions/f/user-interface/30798/generate-download-link-when-clicking-on-button</link><description>Hi there, 
 I have created a button to generate CSV file but after clicking on button- page redirects to home page. I want to create document link when clicking on button so that file get downloaded. How can I do this in interface? 
 
 Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Generate download link when clicking on button</title><link>https://community.appian.com/thread/122791?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2023 17:51:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:26066cd2-98d4-40bf-af2d-400e28cb2802</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;thanks for confirming - if you&amp;#39;re willing, please hit &amp;#39;verify answer&amp;#39; (etc) when you get a chance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate download link when clicking on button</title><link>https://community.appian.com/thread/122790?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2023 17:44:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:98786ed9-3429-4e18-9aa5-b0c8bde9a33a</guid><dc:creator>manjit.1486</dc:creator><description>&lt;p&gt;Awesome, thank you.&amp;nbsp;&lt;br /&gt;I was able to achieve the result. Thanks for the help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate download link when clicking on button</title><link>https://community.appian.com/thread/122717?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 21:48:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a63b485b-c330-4c75-9165-5c20a34ad1ad</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;This is all you need.&amp;nbsp; The &amp;quot;label&amp;quot; parameter in document download link is irrelevant when used in a rich text item, which just uses the value you place in the &amp;quot;text&amp;quot; parameter.&amp;nbsp; I&amp;#39;ve removed everything irrelevant here and fixed the aforementioned &amp;quot;double-negative&amp;quot; error.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;a!richTextDisplayField(
  value: a!richTextItem(
    text: &amp;quot;Dowload Document&amp;quot;,
    showWhen: a!isNotNullOrEmpty(local!docId),
    link: a!documentDownloadLink(
      document: local!docId
    )
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you want to go slightly fancier you can make use of the super flexible nature of being able to stack multiple &lt;em&gt;a!richTextItem()&lt;/em&gt; elements inside one Rich Text Field, and add one that shows up specifically as a placeholder while the Doc ID is still blank:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;a!richTextDisplayField(
  value: {
    a!richTextItem(
      text: &amp;quot;Dowload Document&amp;quot;,
      showWhen: a!isNotNullOrEmpty(local!docId),
      link: a!documentDownloadLink(
        document: local!docId
      )
    ),
    
    /* show a special placeholder while local!docId is still blank: */
    a!richTextItem(
      showWhen: a!isNullOrEmpty(local!docId),
      text: &amp;quot;(No Document)&amp;quot;
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate download link when clicking on button</title><link>https://community.appian.com/thread/122715?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 21:33:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6d372a15-e1df-46cf-9115-32cf4c02a386</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;You have a &lt;span style="text-decoration:underline;"&gt;&lt;em&gt;double negative&lt;/em&gt;&lt;/span&gt; here:&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/13/pastedimage1701725523916v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Essentially this is saying to show the rich text item only when local!docId &lt;em&gt;&lt;strong&gt;IS&lt;/strong&gt;&lt;/em&gt; empty.&lt;/p&gt;
&lt;p&gt;You should be familiar with a!isNullOrEmpty() and its opposite, a!isNotNullOrEmpty() - you would use one or the other of these, but you should &lt;em&gt;never&lt;/em&gt; really need to wrap either, &lt;em&gt;especially the latter&lt;/em&gt;, in the &lt;strong&gt;not()&lt;/strong&gt; function like you&amp;#39;ve done here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate download link when clicking on button</title><link>https://community.appian.com/thread/122713?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 20:47:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f1985238-5720-4124-a4f7-681cec54de34</guid><dc:creator>manjit.1486</dc:creator><description>&lt;p&gt;Yeah.. let me check&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate download link when clicking on button</title><link>https://community.appian.com/thread/122712?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 20:47:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d5688751-4cd2-4f2e-bf7e-06a1915a830c</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;You need to check the value of&amp;nbsp;local!docId.&lt;/p&gt;
&lt;p&gt;This should not be much of a challenge for a senior developer !?!?!?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate download link when clicking on button</title><link>https://community.appian.com/thread/122711?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 20:45:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9a7bc3d6-30fe-4e00-9293-5beb376cc757</guid><dc:creator>manjit.1486</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;      a!richTextDisplayField(
        value: a!richTextItem(
          text:&amp;quot;Dowload Document&amp;quot;,
          link: a!documentDownloadLink(
            label: document(
              documentId: if(a!isNotNullOrEmpty(local!docId),null(),local!docId),
              property: &amp;quot;name&amp;quot;
            ),
            document: if(a!isNotNullOrEmpty(local!docId),null(),local!docId)
          ),
          showWhen: not(a!isNotNullOrEmpty(local!docId))
          )
        ),&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong class="StrongText---richtext_strong StrongText---inMessageLayout StrongText---error"&gt;Could not display interface. Please check definition and inputs.&lt;/strong&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Interface Definition: Expression evaluation error at function &amp;#39;document&amp;#39; [line 949]: The passed parameter(s) are of the wrong type. Received the type Text.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate download link when clicking on button</title><link>https://community.appian.com/thread/122710?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 20:41:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ad6f0d3b-f028-46a2-a206-c811ca514a14</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;That depends on what this GLB_isBlank is doing. Why not use a!isNotNullOrEmpty()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate download link when clicking on button</title><link>https://community.appian.com/thread/122709?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 20:40:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6ffdb76c-f7b3-4ed4-a8d0-da0158ad0ffa</guid><dc:creator>manjit.1486</dc:creator><description>&lt;p&gt;I really don&amp;#39;t know what&amp;#39;s happening.&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;      a!richTextDisplayField(
        value: a!richTextItem(
          text:&amp;quot;Dowload Document&amp;quot;,
          link: a!documentDownloadLink(
            label: document(
              documentId: if(rule!GLB_isBlank(local!docId),null(),local!docId),
              property: &amp;quot;name&amp;quot;
            ),
            document: if(rule!GLB_isBlank(local!docId),null(),local!docId)
          ),
          showWhen: not(rule!GLB_isBlank(local!docId))
          )
        ),&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate download link when clicking on button</title><link>https://community.appian.com/thread/122708?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 20:33:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bec2fbb0-d82d-4240-820d-4e0bd42cdfd3</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;You should display that link only if the document is not null.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate download link when clicking on button</title><link>https://community.appian.com/thread/122707?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 20:16:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:465683df-2bc2-4e32-9a28-04e8b95ef32e</guid><dc:creator>manjit.1486</dc:creator><description>&lt;p&gt;I got it. I used this&amp;nbsp;&lt;span&gt;a!richTextDisplayField(). But still why it&amp;#39;s giving me an errror.&lt;/span&gt;&lt;br /&gt;&lt;strong class="StrongText---richtext_strong StrongText---inMessageLayout StrongText---error"&gt;Could not display interface. Please check definition and inputs.&lt;/strong&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Interface Definition: Expression evaluation error at function &amp;#39;document&amp;#39; [line 949]: Document Does Not Exist or has been Deleted&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate download link when clicking on button</title><link>https://community.appian.com/thread/122705?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 20:11:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e8b333aa-9045-4073-bf4b-26101976943d</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Make sure you account for the fact that the Doc ID will be blank at first.&amp;nbsp; It will be easier if you use a!richTextDisplayField() (i recommend nobody EVER use a!linkField() at this point, it is essentially deprecated by the existence of the Rich Text field) - the benefit here is you can either hide the field entirely and/or disable the link while the local variable containing the document ID is still blank.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate download link when clicking on button</title><link>https://community.appian.com/thread/122703?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 20:05:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2c31c052-3ef9-47ec-b708-625636142574</guid><dc:creator>manjit.1486</dc:creator><description>&lt;p&gt;Thanks for the information. I am following the above highlighted snippet. But when I used that local variable in documentdownload link. It gives an error.&lt;pre class="ui-code" data-mode="text"&gt;a!buttonArrayLayout(
buttons: {
a!buttonWidget_23r3(
label: &amp;quot;Generate File&amp;quot;,
value: cons!IPA_VAL_DATA,
saveInto: {
ri!buttonValue,
a!save(
ri!assign.preparedby,
local!loggedInUser
),
a!startProcess(
processModel: cons!IPA_DATA_PROCESS_MODEL,
processParameters: {
employee:ri!employee,
address:ri!address,
tax:ri!tax,
assigne:ri!assigne
buttonValue:ri!buttonValue
},
 onSuccess: {
                a!save(local!docId,fv!processInfo.pv.docId),
                )
              },
              onError: a!save(
                local!errorMessage,
                &amp;quot;Error Exporting File to Excel&amp;quot;
              )
)
},

submit: false(),
validate: false(),
style: &amp;quot;SECONDARY&amp;quot;,

)
},
align: &amp;quot;START&amp;quot;,
marginAbove: &amp;quot;STANDARD&amp;quot;
),
  a!linkField(
            label: &amp;quot;Download document&amp;quot;,
            labelPosition: &amp;quot;ABOVE&amp;quot;,
            links: {
              a!documentDownloadLink(
                label: document(
                  documentId: local!docId,
                  property: &amp;quot;name&amp;quot;
                ),
                document: local!docId
              )
            }
          )&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong class="StrongText---richtext_strong StrongText---inMessageLayout StrongText---error"&gt;Could not display interface. Please check definition and inputs.&lt;/strong&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Interface Definition: Expression evaluation error at function &amp;#39;document&amp;#39; [line 945]: The passed parameter(s) are of the wrong type. Received the type Text.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;What I am missing? I tried change the type - still gets an error.&amp;nbsp;&lt;br /&gt;pv.docId is integer type.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate download link when clicking on button</title><link>https://community.appian.com/thread/122699?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 19:25:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d522e183-bd11-48ae-8eb7-7bb4d4502177</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;You need to read the details in the rule description for a!startProcess - granted it&amp;#39;s not SUPER well explained at a surface level, but it&amp;#39;s also not that hard.&amp;nbsp; The highlighted snippet is what you&amp;#39;re missing in the above iteration:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1701717929711v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate download link when clicking on button</title><link>https://community.appian.com/thread/122698?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 19:19:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0c3f003a-1320-4e36-801a-6524a91e41ac</guid><dc:creator>manjit.1486</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!buttonArrayLayout(
buttons: {
a!buttonWidget_23r3(
label: &amp;quot;Generate File&amp;quot;,
value: cons!IPA_VAL_DATA,
saveInto: {
ri!buttonValue,
a!save(
ri!assign.preparedby,
local!loggedInUser
),
a!startProcess(
processModel: cons!IPA_DATA_PROCESS_MODEL,
processParameters: {
employee:ri!employee,
address:ri!address,
tax:ri!tax,
assigne:ri!assigne
buttonValue:ri!buttonValue
},
 onSuccess: {
                a!save(local!docId,fv!processInfo),
                )
              },
              onError: a!save(
                local!errorMessage,
                &amp;quot;Error Exporting File to Excel&amp;quot;
              )
)
},

submit: false(),
validate: false(),
style: &amp;quot;SECONDARY&amp;quot;,

)
},
align: &amp;quot;START&amp;quot;,
marginAbove: &amp;quot;STANDARD&amp;quot;
),&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate download link when clicking on button</title><link>https://community.appian.com/thread/122697?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 19:11:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:798901b9-34d2-48f9-9541-9cd89d35631e</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Why do you try to put a HTTP response into a button? That will not do anything.&lt;/p&gt;
&lt;p&gt;What Mike tried to explain, is that you need to store the ID of the generated document from the process into a local variable. Then show a link component to allow the user to download the file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate download link when clicking on button</title><link>https://community.appian.com/thread/122696?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 18:57:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:707d35a5-6b69-4c92-a00c-bde67b64ce9a</guid><dc:creator>manjit.1486</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!buttonArrayLayout(
buttons: {
a!buttonWidget_23r3(
label: &amp;quot;Generate File&amp;quot;,
value: cons!IPA_VAL_DATA,
saveInto: {
ri!buttonValue,
a!save(
ri!assign.preparedby,
local!loggedInUser
),
a!startProcess(
processModel: cons!IPA_DATA_PROCESS_MODEL,
processParameters: {
employee:ri!employee,
address:ri!address,
tax:ri!tax,
assigne:ri!assigne
buttonValue:ri!buttonValue
},
onSuccess: {
                      a!httpResponse(
                        statusCode: 200,
                        headers: {
                          a!httpHeader(
                            name: &amp;quot;Content-Type&amp;quot;,
                            value: &amp;quot;application/json&amp;quot;
                          )
                        },
                        body: fv!processInfo
                      )
                    }
)
},

submit: false(),
validate: false(),
style: &amp;quot;SECONDARY&amp;quot;,

)
},
align: &amp;quot;START&amp;quot;,
marginAbove: &amp;quot;STANDARD&amp;quot;
),&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Can you check?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate download link when clicking on button</title><link>https://community.appian.com/thread/122695?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 18:52:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0203e409-bfd2-4979-a0cc-b8315bf08773</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;ol&gt;
&lt;li&gt;pleeeeeeease use &amp;quot;insert code&amp;quot; for code of... any length&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1701715862683v1.png" alt=" " /&gt;&lt;/li&gt;
&lt;li&gt;you would need to add the &amp;quot;onSuccess&amp;quot; parameter within your a!startProcess call in order to call the generated document ID back into your interface (just store in a local variable, etc).&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate download link when clicking on button</title><link>https://community.appian.com/thread/122694?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 18:49:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:82d2132f-c631-48f4-b781-8bf4fc7bf80b</guid><dc:creator>manjit.1486</dc:creator><description>&lt;p&gt;below is the code: Please verify:&lt;br /&gt;&lt;br /&gt; a!buttonArrayLayout(&lt;br /&gt; buttons: {&lt;br /&gt; a!buttonWidget_23r3(&lt;br /&gt; label: &amp;quot;Generate File&amp;quot;,&lt;br /&gt; value: cons!IPA_VAL_DATA,&lt;br /&gt; saveInto: {&lt;br /&gt; ri!buttonValue,&lt;br /&gt; a!save(&lt;br /&gt; ri!assign.preparedby,&lt;br /&gt; local!loggedInUser&lt;br /&gt; ),&lt;br /&gt; a!startProcess(&lt;br /&gt; processModel: cons!IPA_DATA_PROCESS_MODEL,&lt;br /&gt; processParameters: {&lt;br /&gt;employee:ri!employee,&lt;br /&gt;address:ri!address,&lt;br /&gt;tax:ri!tax,&lt;br /&gt; assigne:ri!assigne&lt;br /&gt; buttonValue:ri!buttonValue&lt;br /&gt; }&lt;br /&gt; )&lt;br /&gt; },&lt;br /&gt;&lt;br /&gt; submit: false(),&lt;br /&gt; validate: false(),&lt;br /&gt; style: &amp;quot;SECONDARY&amp;quot;,&lt;br /&gt; &lt;br /&gt; )&lt;br /&gt; },&lt;br /&gt; align: &amp;quot;START&amp;quot;,&lt;br /&gt; marginAbove: &amp;quot;STANDARD&amp;quot;&lt;br /&gt; ),&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate download link when clicking on button</title><link>https://community.appian.com/thread/122693?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 18:45:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:346885b8-bf6c-4cba-b66a-f0d0fadcdee3</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="251250" url="~/discussions/f/user-interface/30798/generate-download-link-when-clicking-on-button/122688"]startprocess link[/quote]
&lt;p&gt;You wouldn&amp;#39;t use a!startProcessLink() for this.&amp;nbsp; You&amp;#39;d use a!StartProcess(), run the process with chaining enabled, and pass the generated document Id back into your interface.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate download link when clicking on button</title><link>https://community.appian.com/thread/122688?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 18:06:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f93318dd-4452-4e85-9b2d-5f6e53ff1476</guid><dc:creator>manjit.1486</dc:creator><description>&lt;p&gt;I am using rich text and startprocess link. Want to generate a file document link.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate download link when clicking on button</title><link>https://community.appian.com/thread/122599?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2023 12:28:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6e792894-426d-4719-841d-5599b3745ddf</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a class="internal-link view-user-profile" href="/members/manjit.1486"&gt;manjit.1486&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Does this button trigger a Start process? If so I would recommend you to use a Record/Related actions to perform this and try using a User Input task where the user has a summary of what kind of document and what data is there and so on, add a document download link using&amp;nbsp;a!documentDownloadLink() pass your generated document as the value here.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I guess this would help and this is what you were asking for. If not please ignore.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>