<?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>Hello,  I want to implement functionality that will save documents to</title><link>https://community.appian.com/discussions/f/process/6465/hello-i-want-to-implement-functionality-that-will-save-documents-to</link><description>Hello, I want to implement functionality that will save documents to the knowledge center and if a document has the same name as another document in the knowledge then I want a number appended to the end of the document name. Does Appian have built in</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Hello,&lt;br /&gt;&lt;br /&gt;I want to implement functionality that will save documents to</title><link>https://community.appian.com/thread/28171?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2016 20:54:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f6ebdbaa-4377-4ed4-a403-29850ebc7769</guid><dc:creator>issamd</dc:creator><description>Hello, I apologize for the late response. &lt;br /&gt;&lt;br /&gt;I created a rule that did the following:&lt;br /&gt;Since we store document names in the DB, I pulled back all relevant document names.&lt;br /&gt;I append the list of documents existing from the DB to a list of documents I&amp;#39;m trying to upload. &lt;br /&gt;I loop through each document, updating that list as I go through.  It checks if the document I am uploading matches the name of a document in the DB.  If it does, then I update the name of the document to DocName_1.  It then checks if there&amp;#39;s a document with the name DocName_1 in the DB, until it is the maximum number.&lt;br /&gt;It then continues onto document two. &lt;br /&gt;&lt;br /&gt;It&amp;#39;s quite complex, but it just requires some filtering and using a rule that actually calls itself until the name is what you need.&lt;br /&gt;&lt;br /&gt;Let me know if you need any more help.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;&lt;br /&gt;I want to implement functionality that will save documents to</title><link>https://community.appian.com/thread/27616?ContentTypeID=1</link><pubDate>Thu, 11 Feb 2016 00:29:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9ad32c1f-3316-46ca-8c02-4592a56a46e9</guid><dc:creator>rohitw</dc:creator><description>How did you resolve this? Could you please provide some details.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;&lt;br /&gt;I want to implement functionality that will save documents to</title><link>https://community.appian.com/thread/25659?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2015 18:28:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:49ad020d-1c81-4c9b-9245-fca8572dc221</guid><dc:creator>issamd</dc:creator><description>Hello, thank you all for your responses.&lt;br /&gt;&lt;br /&gt;After much tinkering I have created an expression to handle this job.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;&lt;br /&gt;I want to implement functionality that will save documents to</title><link>https://community.appian.com/thread/25455?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2015 22:36:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9abb5946-4aaf-43a1-9e55-20008c8b5b1b</guid><dc:creator>sikhivahans</dc:creator><description>@issamd There isn't an inbuilt functionality to handle this as far as my knowledge is considered. You may need to write an expression which gives you a proper name by using the OOTB Text functions available at https://forum.appian.com/suite/help/7.11/Text_Functions.html and the information(about document names) you have had in database.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;&lt;br /&gt;I want to implement functionality that will save documents to</title><link>https://community.appian.com/thread/25398?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2015 21:56:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6e023ee8-61de-4579-9d11-9ae2c3b4e884</guid><dc:creator>issamd</dc:creator><description>I have a list of the current document names both in the database and in process, but I need a function that will compare the names and, if any of them equal each other, then to append a _1, or (1) to it, the same way the Windows handles documents with the same names.&lt;br /&gt;&lt;br /&gt;My concern isn&amp;#39;t getting the documents, it&amp;#39;s a function to make the comparison, to then save that to an array.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;&lt;br /&gt;I want to implement functionality that will save documents to</title><link>https://community.appian.com/thread/25333?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2015 00:15:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cbc37553-b71e-4be3-8250-bc94607ba6aa</guid><dc:creator>sikhivahans</dc:creator><description>Re Custom Content Functions plugin, I don&amp;#39;t think it&amp;#39;s the right one to use as we haven&amp;#39;t had a good experience with it. For instance, findDocumentsByName in this plugin won&amp;#39;t return you any search results if the document&amp;#39;s name we are searching for includes special characters (For instance, if the document name contains a hyphen i.e. &amp;quot;-&amp;quot;, this document won&amp;#39;t be returned by findDocumentsByName)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;&lt;br /&gt;I want to implement functionality that will save documents to</title><link>https://community.appian.com/thread/25330?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2015 23:47:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4ee755b6-88e8-47d5-b580-009c9982bfd9</guid><dc:creator>Shyam Bommakanti</dc:creator><description>Internal names are different from the user uploaded/set file names on the from UI. There can be unlimited number of documents in different KC or folders with same names and they all will have different internal document name. Maybe you should explore Custom content functions plugin to search for the document name: &lt;a href="https://forum.appian.com/suite/tempo/records/type/components/item/i8BCLGOdlMUpdGVqT-RV7oRg74uEGJO5CUfzKHrRDheqXKAfJuktZsH4-J1TowoMw/view/summary"&gt;forum.appian.com/.../summary&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;&lt;br /&gt;I want to implement functionality that will save documents to</title><link>https://community.appian.com/thread/25317?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2015 21:13:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fdab5788-c5ec-4fa5-b3ac-e9478affb643</guid><dc:creator>issamd</dc:creator><description>Okay cool!  That&amp;#39;s a good starting point, thanks!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;&lt;br /&gt;I want to implement functionality that will save documents to</title><link>https://community.appian.com/thread/25316?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2015 21:01:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a0faae43-be0c-487e-aca8-5f27ec633c41</guid><dc:creator>ChristineLHutchison</dc:creator><description>I think this function would just be a starting point to see if the filename exists and then you could rename the document that your user uploaded.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;&lt;br /&gt;I want to implement functionality that will save documents to</title><link>https://community.appian.com/thread/25312?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2015 20:24:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d9248017-7bd1-4d5c-a530-2b2e1390d087</guid><dc:creator>issamd</dc:creator><description>So with this plug in, if a user uploads a document called &amp;quot;Test&amp;quot;, then later uploads another document called &amp;quot;Test&amp;quot;, the system will change the name to &amp;quot;Test_1&amp;quot;?&lt;br /&gt;&lt;br /&gt;If they upload another document called &amp;quot;Test&amp;quot;, will the system change that third document to &amp;quot;Test_2&amp;quot;?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;&lt;br /&gt;I want to implement functionality that will save documents to</title><link>https://community.appian.com/thread/25311?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2015 20:20:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:823a6dd3-4484-4431-a9dd-9b0239f0c62b</guid><dc:creator>ChristineLHutchison</dc:creator><description>This plugin may help: &lt;a href="https://forum.appian.com/suite/tempo/records/type/components/item/i4BCLGOdlMUpdGVqT-RV7oRg74uEGJO7CX78k3rTbF8G99KUVKWS-2lgHOJrARv/view/summary"&gt;forum.appian.com/.../summary&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It has an expression that seems to do what you are asking:&lt;br /&gt;&amp;quot;UPDATED 07.01.2014&lt;br /&gt;- New function getContentDetailsByInternalName returns information about a content object (i.e. document) given its internal file name. If you know in what KC this file is located (based on its physical location, e.g. accdocs2\\8\\10000119.pdf is located in KC 8 ) you can narrow down the search and get a result faster by passing the KC as an optional parameter. Example:&lt;br /&gt;&lt;br /&gt;getContentDetailsByInternalName(&amp;quot;10000119.pdf&amp;quot;,8)&lt;br /&gt;&amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hope that helps!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>