<?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>Get Document Id by Document name</title><link>https://community.appian.com/discussions/f/rules/12198/get-document-id-by-document-name</link><description>Can we get the document id by document name ? 
 Please help</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Get Document Id by Document name</title><link>https://community.appian.com/thread/113813?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2023 15:01:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e2fb73cd-00b1-4ccb-abe4-d40ef67ed067</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;You&amp;#39;re replying to a VERY old comment.&amp;nbsp; These days the plug-in has migrated to be the Content Tools plug-in (as mentioned already by Tushar).&amp;nbsp; You can find this by navigating to the &amp;quot;App Market&amp;quot; tab here on Community and searching &amp;quot;Content Tools&amp;quot; - or if you are using a Cloud environment, simply go to your Admin Console&amp;#39;s Plug-Ins tab and deploy the Content Tools plug-in from there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Document Id by Document name</title><link>https://community.appian.com/thread/113772?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2023 07:50:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:399ff2a6-c723-45a0-8697-3b3d6b0ba99f</guid><dc:creator>tushark6475</dc:creator><description>&lt;p&gt;Hi Vinay, there is a plugin called &amp;quot;Content Tools&amp;quot; just deploy that plugin in your environment, you will get to use the above-mentioned function &amp;quot;&lt;span&gt;findDocumentsByName&lt;/span&gt;&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Document Id by Document name</title><link>https://community.appian.com/thread/113766?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2023 06:37:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:561a4e98-6305-4f6a-8870-d497a20f09c3</guid><dc:creator>JUMMIDI VINAY</dc:creator><description>&lt;p&gt;Hi mike,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;i need this function &amp;quot;findDocumentsByName&amp;quot;.Can you Help me finiding this Plug in. couldn&amp;#39;t open the link you have attached.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Document Id by Document name</title><link>https://community.appian.com/thread/54049?ContentTypeID=1</link><pubDate>Tue, 10 Apr 2018 18:05:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:92740747-0fa9-4ae4-b62f-83eb5b5c2462</guid><dc:creator>Robert Shankin</dc:creator><description>or just do what   suggested. :-)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Document Id by Document name</title><link>https://community.appian.com/thread/54012?ContentTypeID=1</link><pubDate>Mon, 09 Apr 2018 17:42:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f0653889-9298-4a5d-abf3-d31336da6f6f</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;You will probably want to check out the &lt;a href="https://forum.appian.com/suite/tempo/records/item/lMBCLGOdlMUpdGVqW3dQaIKmclBmvvNEj8vu_cjb7T-5YiPr4Fu8ly5Yj1s09uenE4RYzA8zKyx7eiUheigLnP0HseAqr85fQ4C2iA26S3m6XdDfQ/view/summary"&gt;Custom Content Plug-in&lt;/a&gt;, specifically the &amp;quot;&lt;strong&gt;findDocumentsByName&lt;/strong&gt;&amp;quot; function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Document Id by Document name</title><link>https://community.appian.com/thread/54005?ContentTypeID=1</link><pubDate>Mon, 09 Apr 2018 16:24:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c078408a-ae72-43c7-bf53-84e2e0997a92</guid><dc:creator>Robert Shankin</dc:creator><description>&lt;p&gt;Hi Dharsana (dharsanag39) &amp;nbsp;-&lt;/p&gt;
&lt;p&gt;One way you &lt;em&gt;could&lt;/em&gt; do this would be to create a docId-to-name reference table in the relational database.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;For example, as the documents are created in Appian you could record the docId and the name in a pair of db columns columns in one table.&lt;/li&gt;
&lt;li&gt;You could then connect the name back to the docId in the DB, and then retrieve the doc in Appian with that Id.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Accordingly, there are&amp;nbsp;some caveats:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Synchronization between the document name in Appian and the document name in the database must be enforced; if the name changes in Appian and doesn&amp;#39;t also change in the database the reference is broken&lt;/li&gt;
&lt;li&gt;document names in Appian are not required to be unique (hence a unique document id or docId); if you&amp;#39;ve got multiple documents with the same name, you&amp;#39;ll need to be prepared to process and array of document id&amp;#39;s returned from your query.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;there are probably more considerations, but that&amp;#39;s good for now&lt;/em&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Review documentation on the &lt;a href="https://docs.appian.com/suite/help/18.1/fnc_scripting_document.html" target="_blank"&gt;document() function here&lt;/a&gt;.&amp;nbsp; This function requires a docId to retrieve a document.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>