<?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>findFolderByName() does not exist?</title><link>https://community.appian.com/discussions/f/new-to-appian/19404/findfolderbyname-does-not-exist</link><description>Hi, 
 following the tutorial for HR_Assessment in &amp;quot;Building a process&amp;quot; there is a folder created for a hire. But any time the process is resartet for debugging or testing, the folder &amp;quot;HR_Lucie_Pressnel&amp;quot; for example gets created over and over again, each</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: findFolderByName() does not exist?</title><link>https://community.appian.com/thread/75971?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2020 19:50:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9cfa514d-3c9d-45fb-b865-543305b82d56</guid><dc:creator>aveldena</dc:creator><description>&lt;p&gt;That is a very good point!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: findFolderByName() does not exist?</title><link>https://community.appian.com/thread/75955?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2020 13:01:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fb19d889-b64a-4a01-aaa6-65d0eac9e401</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;The other thing to keep in mind is that most of the time when you upload files to Appian, you want to associate them with some business data that already exists in a database. For instance, you might have documents related to a case.&amp;nbsp;So it&amp;#39;s not required to store information about folders / documents in the database, but it&amp;#39;s the most convenient since the other data already exists there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: findFolderByName() does not exist?</title><link>https://community.appian.com/thread/75944?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2020 09:55:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:26bee1cf-7064-4e66-ac49-d032b648c713</guid><dc:creator>aveldena</dc:creator><description>&lt;p&gt;thanks for your answer. Appreciate it.&lt;/p&gt;
&lt;p&gt;You are right. &amp;quot;extensive database&amp;quot; operation is not needed here.&lt;/p&gt;
&lt;p&gt;but your answer shows me also that there is indeed always a database operation needed in order to handle folders.&lt;/p&gt;
&lt;p&gt;It is not just done by a function or rule.&lt;/p&gt;
&lt;p&gt;you do need to make a query to the database and lookup &amp;quot;name&amp;quot; or &amp;quot;id&amp;quot; or&amp;quot; folderid&amp;quot; in case a new hire is showing up. You canot just get a list of dirs as array and index(list,item,default) on it, without the database.&lt;/p&gt;
&lt;p&gt;but it is as it is, and it is not a problem at all.&lt;/p&gt;
&lt;p&gt;thx again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: findFolderByName() does not exist?</title><link>https://community.appian.com/thread/75874?ContentTypeID=1</link><pubDate>Mon, 10 Aug 2020 16:38:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7783d1e3-0fd4-44da-ba35-3f29358b8e4f</guid><dc:creator>Robert Shankin</dc:creator><description>&lt;p&gt;Hi Olaf.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s not necessary to develop extensive database structures to work with files and folders.&lt;br /&gt;It&amp;#39;s typically enough to store the folderId property (&amp;quot;id&amp;quot;).&lt;/p&gt;
&lt;p&gt;You can capture this value on the outputs tab of the create folder task with a custom output like:&amp;nbsp;&lt;em&gt;folder(ac!NewFolder,&amp;quot;id&amp;quot;)&lt;/em&gt; .&lt;/p&gt;
&lt;p&gt;Store the result into a PV of type &lt;em&gt;number (integer)&lt;/em&gt;.&lt;br /&gt;By placing that value alone in the database, you can reference the folder created for a specific case easily as needed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>