<?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>Documents &amp;amp; JSON</title><link>https://community.appian.com/discussions/f/general/30129/documents-json</link><description>Hi, 
 Does anyone know how to convert a document stored in appian to an url? to use it as a dynamic link in a json. 
 Thanks!</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Documents &amp; JSON</title><link>https://community.appian.com/thread/119857?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2023 22:42:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:045eac03-4358-43c1-8de7-927b2c72dd0a</guid><dc:creator>romiev8957</dc:creator><description>&lt;p&gt;Thank you all!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Documents &amp; JSON</title><link>https://community.appian.com/thread/119845?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2023 14:05:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:53938a4e-6feb-43b8-b3cd-3c295d7ef06c</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Depends on who is &amp;quot;anyone&amp;quot;. The user needs a valid Appian account, and have permission to call the API and have access to the document. And, as the API does not directly support logging in or SSO, the user needs to be logged in already.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Documents &amp; JSON</title><link>https://community.appian.com/thread/119844?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2023 13:50:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ed733dc6-cb6e-40ce-b22b-77f4265eca2d</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="59361" url="~/discussions/f/general/30129/documents-json/119814#119814"]This uses official functionality, is stable and easy to use.[/quote]
&lt;p&gt;This method of creating the link allows anyone with the link to download the file, correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Documents &amp; JSON</title><link>https://community.appian.com/thread/119839?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2023 11:19:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:98cecddb-f8b4-4315-bcaf-f8db16680741</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;Stefan is right. Much cleaner to use the API. It even works right out of the box. The only change you might need to do is to modify the extension safe list.&lt;/p&gt;
&lt;p&gt;&lt;img height="252" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1695726909932v1.png" width="236" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img height="170" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1695726993525v3.png" width="213" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;local!extensionWhitelist: {&amp;quot;pdf&amp;quot;, &amp;quot;txt&amp;quot;, &amp;quot;png&amp;quot;, &amp;quot;jpg&amp;quot;, &amp;quot;jpeg&amp;quot;},&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Documents &amp; JSON</title><link>https://community.appian.com/thread/119814?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2023 06:24:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b92b564f-9678-4772-8251-a55de8805760</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Be aware that this is part of the internal implementation and can stop working any time.&lt;/p&gt;
&lt;p&gt;BTW, providing a file for download is pretty simple. Just create a web API in Appian. This uses official functionality, is stable and easy to use.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Documents &amp; JSON</title><link>https://community.appian.com/thread/119808?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 23:48:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:24fbe0cd-30b0-4d78-947a-ede2f0fb5794</guid><dc:creator>romiev8957</dc:creator><description>&lt;p&gt;Got it, thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Documents &amp; JSON</title><link>https://community.appian.com/thread/119807?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 21:49:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:29c42583-83aa-4c48-a848-fb907027c757</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;This&amp;nbsp;method is not sanctioned&amp;nbsp;by Appian but it will work if you share it with someone who is authenticated.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!documentDownloadLink: a!documentDownloadLink(
    document: cons!NZC_CSO_IMAGE_DOCUMENT_ID
  ),
  local!urlPrefix: &amp;quot;https://&amp;lt;APPIAN_URL&amp;gt;/suite/rest/a/content/latest/&amp;quot;,
  concat(
    local!urlPrefix,
    local!documentDownloadLink.@attributes.@anyAttribute._documentDownloadLink,
    &amp;quot;/o&amp;quot;
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Documents &amp; JSON</title><link>https://community.appian.com/thread/119806?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 19:17:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2ccaffdb-c02e-4cfa-8c4a-0bcaa206a0e6</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Downloads are only available to a logged-in user viewing an active interface.&amp;nbsp; There&amp;#39;s no supported way to grab an externally-usable URL for a document download, as Appian requires that downloads are only accessible by users in the proper security roles/groups.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Documents &amp; JSON</title><link>https://community.appian.com/thread/119805?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 19:10:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:917cb2b6-6f8a-4818-9b90-4f32d81fbd94</guid><dc:creator>romiev8957</dc:creator><description>&lt;p&gt;&lt;span&gt;and there&amp;#39;s any way you can save that download url? In case anyone else wants to download the document just with an url, not using the document download link.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Documents &amp; JSON</title><link>https://community.appian.com/thread/119804?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 18:52:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:040f4117-1a96-4c08-ad25-4b65404c7966</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Can you tell us a bit more about your use case?&amp;nbsp; I&amp;#39;m unclear what approach you&amp;#39;re even going for here.&amp;nbsp; If, for instance, you want to allow a user to download the file from an Appian interface, you&amp;#39;d use the Document ID in a Document Download Link (preferably in a Rich Text Display), wherein they&amp;#39;d be able to click that link and download it.&amp;nbsp; Appian handles the URL creation involved, ther isn&amp;#39;t really a way to manually construct such a URL directly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Documents &amp; JSON</title><link>https://community.appian.com/thread/119798?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 17:28:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8209aa2f-bf23-4d35-9b70-edc77df0fbf3</guid><dc:creator>romiev8957</dc:creator><description>&lt;p&gt;It&amp;#39;s to change the &amp;quot;Video&amp;quot; field for an url instead of the document ID&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1695662857350v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>