<?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>How can I check if a doc exists in Knowledge Center within a process?</title><link>https://community.appian.com/discussions/f/general/26083/how-can-i-check-if-a-doc-exists-in-knowledge-center-within-a-process</link><description>I have a process that gets a Doc ID to be deleted from the database. Before attempting to delete the doc, I would like to check if it exists in Knowledge Center? How can I do so? 
 See below highlighted node where I need to add this &amp;quot;Check&amp;quot;. 
 Docs to</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How can I check if a doc exists in Knowledge Center within a process?</title><link>https://community.appian.com/thread/102210?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 15:16:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7094e3e4-3530-48fc-898f-e040301c99a8</guid><dc:creator>ujjwalr0002</dc:creator><description>&lt;p&gt;Okay I will take care of this but we discussed the validation part there as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I check if a doc exists in Knowledge Center within a process?</title><link>https://community.appian.com/thread/102209?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 15:14:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7e0a2104-15b6-418f-906f-b3ef21fb1dfe</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="64098" url="~/discussions/f/general/26083/how-can-i-check-if-a-doc-exists-in-knowledge-center-within-a-process/102200#102200"]Check this&amp;nbsp;&lt;a href="/discussions/f/user-interface/25775/error-when-use-function-document"&gt;&lt;/a&gt;[/quote]
&lt;p&gt;meh.. that thread was a bit of a mess.&amp;nbsp; i&amp;#39;m still not sure whether that user ever clarified whether they were referring to a just-uploaded document or not, which is a *completely different* use case with different error implications.&amp;nbsp; &lt;span style="font-size:75%;"&gt;&lt;em&gt;super frustrating how people post questions then won&amp;#39;t post relevant details even after we beg them to...&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I check if a doc exists in Knowledge Center within a process?</title><link>https://community.appian.com/thread/102208?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 15:10:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6f37c827-2fe8-4719-ab1c-a244ddda695d</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;There are various ways to take a doc ID and check that it represents a valid document in the system - one of the easier current ways that I actually use is the function &amp;quot;isobjectexists()&amp;quot; found in the &lt;a href="/b/appmarket/posts/check-object-existence"&gt;Check Objects Existence plug-in&lt;/a&gt;.&amp;nbsp; I wrap this function in an expression rule that I call something like &amp;quot;APP_Util_docExists()&amp;quot;, where i also check that the input ID is non-empty and non-zero before calling the plug-in function on it.&lt;br /&gt;&lt;pre class="ui-code" data-mode="java"&gt;and(
  a!isNotNullOrEmpty(ri!doc),
  tointeger(ri!doc) &amp;gt; 0,
  
  isobjectexists(&amp;quot;Document&amp;quot;, ri!doc)
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I check if a doc exists in Knowledge Center within a process?</title><link>https://community.appian.com/thread/102200?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 14:15:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:323f37ea-1deb-4142-af81-813b13bd70af</guid><dc:creator>ujjwalr0002</dc:creator><description>&lt;p&gt;Check this&amp;nbsp;&lt;a href="/discussions/f/user-interface/25775/error-when-use-function-document"&gt;https://community.appian.com/discussions/f/user-interface/25775/error-when-use-function-document&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I check if a doc exists in Knowledge Center within a process?</title><link>https://community.appian.com/thread/102199?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 14:08:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4e73951a-922b-4678-a9bb-624f560a5908</guid><dc:creator>hunterr0001</dc:creator><description>&lt;p&gt;Thanks for the response.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Docs to be deleted node gets doc Ids from DB and outputs a list of Documents. I would like to check if each document in list is a valid document in Appian and if not, remove it from list.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I check if a doc exists in Knowledge Center within a process?</title><link>https://community.appian.com/thread/102198?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 13:48:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d0bfb117-2c88-4064-9466-bc6041c9b7da</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Can you clarify what you mean by this?&lt;/p&gt;
[quote userid="54999" url="~/discussions/f/general/26083/how-can-i-check-if-a-doc-exists-in-knowledge-center-within-a-process"]check if it exists in Knowledge Center[/quote]
&lt;p&gt;Are you saying it should be in &lt;em&gt;&lt;strong&gt;some specific knowledge center&lt;/strong&gt;&lt;/em&gt;, and if it isn&amp;#39;t in that &lt;em&gt;&lt;strong&gt;specific&lt;/strong&gt;&lt;/em&gt;&lt;strong&gt;&lt;/strong&gt; knowledge center, then don&amp;#39;t delete it?&amp;nbsp; Or are you merely saying you want to check that it&amp;#39;s a &lt;em&gt;valid document ID within Appian&lt;/em&gt;?&amp;nbsp; Since all documents are in *some* knowledge center to begin with.&lt;/p&gt;
&lt;p&gt;Honestly the best place to do this might be in the code you&amp;#39;re using for the &amp;quot;Docs to be Deleted&amp;quot; node - especially if you&amp;#39;re handling that output with an expression rule where you can easily test different scenarios.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I check if a doc exists in Knowledge Center within a process?</title><link>https://community.appian.com/thread/102141?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 03:29:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:70915eba-7cab-4e70-84ff-d22b292b84b7</guid><dc:creator>ujjwalr0002</dc:creator><description>&lt;p&gt;To check the knowledge center ID for documents you can use the document function we have a property as&amp;nbsp;&lt;strong&gt;knowledgeCenterId&lt;/strong&gt;&amp;nbsp;once you have the IDs you can use whereContains and index functions to get the filtered list.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>