<?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>Validate document ID</title><link>https://community.appian.com/discussions/f/rules/17437/validate-document-id</link><description>Is there a way to validate an Appian document ID before trying to use the document() function on it? document() will fail if passed an invalid Appian document, and todocument() will return a document type even if the ID is not a valid Appian document</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Validate document ID</title><link>https://community.appian.com/thread/68758?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 14:31:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3d2c2b41-6157-4b0f-942e-0117040c3c7c</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;What validation are you wanting to do?&amp;nbsp; Are you talking about a just-uploaded document, or a document ID for a document that may already be in the system if it exists?&lt;/p&gt;
&lt;p&gt;If it&amp;#39;s the latter, my favorite way is to use the &amp;quot;getContentObjectDetailsById&amp;quot; function (from the Appian object information retriever plug-in), which will return a string value regardless of how valid the ID you pass in is, but when it belongs to a valid document the metadata it passes out can be used to tell for sure.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validate document ID</title><link>https://community.appian.com/thread/68740?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 06:13:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a73ef1d7-082d-4680-9140-aa34b6ddd5a9</guid><dc:creator>Jayapriya Muthu</dc:creator><description>&lt;p&gt;Hi, Please check the function and plugin mentioned in the below thread&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://community.appian.com/discussions/f/general/8567/check-weather-document-exists-or-not"&gt;community.appian.com/.../check-weather-document-exists-or-not&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>