<?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>a!documentDownloadLink</title><link>https://community.appian.com/discussions/f/general/30340/a-documentdownloadlink</link><description>i link: a!documentDownloadLink(document: fv!item.appianDocId ), 
 
 used the above two lines to download a document but it does not download , it open a tab with a message error : { &amp;quot;error&amp;quot;: &amp;quot;APNX-1-0000-000&amp;quot;, &amp;quot;message&amp;quot;: &amp;quot;Invalid Content ID&amp;quot;, &amp;quot;title&amp;quot;</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: a!documentDownloadLink</title><link>https://community.appian.com/thread/121482?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 05:00:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ac6479fb-7092-4d6b-aa3c-0f7caa26caa6</guid><dc:creator>mounikay348530</dc:creator><description>&lt;p&gt;a!gridColumn(&lt;br /&gt; label: &amp;quot;Download Doc&amp;quot;,&lt;br /&gt; value: a!richTextDisplayField(&lt;br /&gt; value: a!richTextIcon(&lt;br /&gt; icon: &amp;quot;download&amp;quot;,&lt;br /&gt; link: &lt;strong&gt;a!documentDownloadLink(&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; label:&lt;/strong&gt; &lt;strong&gt;document(&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; fv!row['recordType!recordTypeName.fields.documentId'],&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; &amp;quot;name&amp;quot;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; ),&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; document: todocument(&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; fv!row['recordType!recordTypeName.fields.documentId']&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; )&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; )&lt;/strong&gt;&lt;br /&gt; ),&lt;/p&gt;
&lt;p&gt;),&lt;br /&gt; align: &amp;quot;CENTER&amp;quot;,&lt;br /&gt; width: &amp;quot;1X&amp;quot;&lt;br /&gt; )&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/11/pastedimage1699505802262v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Hi , try to check with the above code&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!documentDownloadLink</title><link>https://community.appian.com/thread/121480?ContentTypeID=1</link><pubDate>Wed, 08 Nov 2023 12:55:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5c8146a-065c-40e2-a712-1ccea830675a</guid><dc:creator>riyazn399986</dc:creator><description>&lt;p&gt;It seems the object you are trying to download does not exists in appian. So before passing the documentID to&amp;nbsp;&lt;span&gt;a!documentDownloadLink() function better to check the exitance&amp;nbsp;of document in Appian using following functions:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;isobjectexists returns true if object exists&amp;nbsp;in Appian.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span style="background-color:#ccffcc;"&gt;isobjectexists(&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ccffcc;"&gt; &amp;quot;Document&amp;quot;,&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ccffcc;"&gt; /*documentID*/&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ccffcc;"&gt;)&amp;nbsp;&lt;/span&gt; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;getcontentobjectdetailsbyid will return all the content of the object.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ccffff;"&gt;getcontentobjectdetailsbyid(&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ccffff;"&gt; /*documentID*/&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ccffff;"&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!documentDownloadLink</title><link>https://community.appian.com/thread/121425?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 12:31:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d7bb105b-095c-4a63-a34a-1899c36cf343</guid><dc:creator>Anna P</dc:creator><description>&lt;p&gt;look like that appianDocId is not exist or deleted.&lt;/p&gt;
&lt;p&gt;Try to search that is in objects with type UUID or ID. Im sure you will not find that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!documentDownloadLink</title><link>https://community.appian.com/thread/121347?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2023 10:06:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c0bcd2a0-d187-4b3e-a8f9-4b1eb7d309bf</guid><dc:creator>ZacharyMiller</dc:creator><description>&lt;p&gt;This issue suggests that the content ID used for document retrieval may be incorrect or invalid, leading to the unsuccessful download attempt.While looking for an essay writing service, I discovered the &lt;a href="https://www.trustmypaper.com/write-my-lab-report"&gt;Trust My Paper&lt;/a&gt; website. This site became a valuable resource in my quest for the Write My Lab Report that suits my needs. It simplified my search by providing insights into reliable tools, making the process of finding the right one much easier. With its helpful information, Trust My Paper turned out to be more than just a service provider; it became a guide in navigating the plethora of online resources available for generating effective.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!documentDownloadLink</title><link>https://community.appian.com/thread/120618?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2023 09:11:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf2a2afa-2261-4bd5-b594-c03eb53a79ce</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;Did you try doing todocument with that docId in an expression rule?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!documentDownloadLink</title><link>https://community.appian.com/thread/120608?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2023 18:39:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5ede9fe-1ef4-4a00-b952-b933e9607f39</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;You just shared this minimal code snippet. I cannot help you much without more context.&lt;/p&gt;
&lt;p&gt;Did you check the actual values in that data you seem to iterate on?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!documentDownloadLink</title><link>https://community.appian.com/thread/120607?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2023 18:37:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c05298be-ba35-47b1-a35b-eade07179376</guid><dc:creator>jamesp9268</dc:creator><description>&lt;p&gt;Yes it seems like it&amp;#39;s saving the appianDocId in the database correctly&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1697481421012v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!documentDownloadLink</title><link>https://community.appian.com/thread/120605?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2023 18:33:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1e9205b5-be82-4274-be08-19dadb28b77d</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Is that value in&amp;nbsp;&lt;span&gt;appianDocId a valid document id?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!documentDownloadLink</title><link>https://community.appian.com/thread/120600?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2023 18:16:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6df56281-4bb5-4008-bff2-5e006897c51c</guid><dc:creator>Harshmodi</dc:creator><description>&lt;p&gt;&lt;span&gt;Hey, the format for utilizing the document download link is as follows:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt; a!linkField(&lt;br /&gt; label: &amp;quot;Link&amp;quot;,&lt;br /&gt; labelPosition: &amp;quot;ABOVE&amp;quot;,&lt;br /&gt; links: {&lt;br /&gt; a!documentDownloadLink(&lt;br /&gt; label: &amp;quot;Document Link&amp;quot;,&lt;br /&gt; document: 8552&amp;nbsp; &amp;nbsp; /* document id */&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt; )&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>