<?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>previous version of a Document in SAIL</title><link>https://community.appian.com/discussions/f/user-interface/9723/previous-version-of-a-document-in-sail</link><description>hi all, do you know how in SAIL can I show, for a given DocumentID, all its previous versions? many thanks OriginalPostID-261973</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: previous version of a Document in SAIL</title><link>https://community.appian.com/thread/136184?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 12:58:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:438a1be2-c865-48a0-9f18-fbab1b10cd96</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;This post is from over 7 years ago.&amp;nbsp; Many things about this topic have changed in the meantime (for instance, i believe there are some functions to allow looking up of specific document version IDs, though I don&amp;#39;t remember very well off the top of my head).&amp;nbsp; I&amp;#39;d advise you to either search out more recent posts on the issue, or start your own new post to ask.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: previous version of a Document in SAIL</title><link>https://community.appian.com/thread/136156?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 07:51:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b6414c7f-f94e-4adb-bf1b-bd78e3189c2a</guid><dc:creator>yashig2399</dc:creator><description>&lt;p&gt;what approach have you taken to solve this. I have same requirement&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: previous version of a Document in SAIL</title><link>https://community.appian.com/thread/42887?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2017 22:37:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:31fafe49-d53b-4a5a-b3e9-0c5393638262</guid><dc:creator>Ram</dc:creator><description>Hi Francesco,&lt;br /&gt;&lt;br /&gt;There is a plugin in shared components which gives metadata of a document please refer the below link.&lt;br /&gt;&lt;a href="https://forum.appian.com/suite/tempo/records/item/lMBCLGOdlMUpdGVqW3dQaIKmclBmvvNEj8vu_cjb7T-5YiPr4Fu8ly5Yj1s09uenE4RYzA8zKyx7eiUh-ivLnOgTqTNhNTRCkhXxxhfwS4XOHOJaA/view/summary"&gt;forum.appian.com/.../summary&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The only problem is that you cannot download the earlier versions of the documents since the old versions returned by the plugin have the same doc id.&lt;br /&gt;&lt;br /&gt;I had the same scenario in my project and we opted for database to manage document versions. Lets see what other practitioners say.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: previous version of a Document in SAIL</title><link>https://community.appian.com/thread/42886?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2017 21:40:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:929da360-2f6d-49ad-9147-deabc8e40e4b</guid><dc:creator>francescop389</dc:creator><description>hi @akkramanir,&lt;br /&gt;thanks for suggestion, but that&amp;#39;s exactly what I was trying to avoid with my question :)&lt;br /&gt;in my use case I already have a relationship between different documents, so I don&amp;#39;t want to add different rows in the DB just for the version change.&lt;br /&gt;what I need is to use the Appian versioning, and when a user select a document from a grid in SAIL, to show somewhere else (in another grid maybe) the list of previous version for that document.. but without having different documents as version&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: previous version of a Document in SAIL</title><link>https://community.appian.com/thread/42883?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2017 20:16:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:249326ab-f907-49f6-b6bc-97d71126e994</guid><dc:creator>Ram</dc:creator><description>Adding to the above, since you have doc id&amp;#39;s you can use below code in an expression and iterate it.&lt;br /&gt;a!linkField(&lt;br /&gt; label: &amp;quot;&amp;quot;,&lt;br /&gt; links: a!documentDownloadLink(&lt;br /&gt;   document: &lt;br /&gt; )&lt;br /&gt;)&lt;br /&gt;This will be the better approach for creating document download link&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: previous version of a Document in SAIL</title><link>https://community.appian.com/thread/42882?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2017 20:12:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:001bacb8-f132-481e-a2bb-9d9641c9d692</guid><dc:creator>Ram</dc:creator><description>Hi Francesco,&lt;br /&gt;&lt;br /&gt;The work around for your approach is that first you need to save each document individualy i mean don&amp;#39;t let appian to create document versions.&lt;br /&gt;Save all the related document ids in database and keep a reference column so that you can pull all the related document ids&lt;br /&gt;Then you need to construct a URL to download the document with obtained doc id&amp;#39;s. The URL for downloading documents can be seen below&lt;br /&gt;&lt;br /&gt;&lt;a href="https://forum.appian.com/suite/doc/106162"&gt;forum.appian.com/.../106162&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You can get &amp;quot;&lt;a href="https://forum.appian.com/suite/"&gt;forum.appian.com/.../&amp;quot;&lt;/a&gt; using rule!APN_getSiteUrl() or you can keep it in a constant and this should be changed from environment to environment witn new URL&lt;br /&gt;&lt;br /&gt;And keep the &amp;quot;doc/&amp;quot;&amp;quot; in a appian constant&lt;br /&gt;&lt;br /&gt;Now construct the URL in a expression rule say getDocumentVersions() which takes document id as input. Code for the rule will be in below format&lt;br /&gt;rule!APN_getSiteUrl() &amp;amp; doc/ &amp;amp; documentId&lt;br /&gt;&lt;br /&gt;Now you can use apply() to iterate newly created getDocumentVersions() rule for document ids obtained from DB&lt;br /&gt;&lt;br /&gt;Hope this will help you.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>