<?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>issue with getdocumentsfromfolder function</title><link>https://community.appian.com/discussions/f/general/9001/issue-with-getdocumentsfromfolder-function</link><description>Hi, The getdocumentsfromfolder function seems straightforward but for some reason, it is not returning any documents when being used in one of our processes. I have a sub-process which is being passed the folder in a pv called pv!requestFolder. I can</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: issue with getdocumentsfromfolder function</title><link>https://community.appian.com/thread/40100?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 08:14:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:699cea49-641a-41e1-ab82-17ca46d5e0a6</guid><dc:creator>Eduardo Fuentes</dc:creator><description>If the options were disabled already there are two possible situations:&lt;br /&gt;&lt;br /&gt;1. The options were disabled AFTER the documents had been already created thus they remained as &amp;quot;pending approval&amp;quot;. This is possible because disabling the checkbox doesn&amp;#39;t auto-approve the pending approval documents&lt;br /&gt;&lt;br /&gt;2. Or you&amp;#39;re facing the issue from KB article &lt;a href="https://forum.appian.com/suite/help/16.3/kb/kb-1192.html"&gt;forum.appian.com/.../kb-1192.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;NEXT STEPS&lt;br /&gt;&lt;br /&gt;1. For #1 above, can you try uploading new files to check if they are found now? IF they are then the issue is resolved.&lt;br /&gt;&lt;br /&gt;2. If not resolved for new documents then that&amp;#39;s right you&amp;#39;ll have to run &amp;quot;Remove Approval Required&amp;quot; after creating a folder if:&lt;br /&gt;---&amp;gt; You&amp;#39;re creating the folder with a custom plugin&lt;br /&gt;---&amp;gt; You&amp;#39;re creating the folder in a KC that has those checkbox enabled but then moving the folder with a smart service&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue with getdocumentsfromfolder function</title><link>https://community.appian.com/thread/40099?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 07:46:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c9722365-bb11-415f-8ffd-e65b33805956</guid><dc:creator>garym</dc:creator><description>@Eduardo - those 3 options were all disabled already&lt;br /&gt;&lt;br /&gt;I just approved the documents that were in the folder to get it working.  However, for future folders being created, I am assuming they will still require approvals so does that mean whenever I create a folder in the process, I should use the Remove Approval Required smart service afterwards to make sure that it is disabled?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue with getdocumentsfromfolder function</title><link>https://community.appian.com/thread/40098?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 07:34:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c363b207-a551-485d-817b-19c557257ace</guid><dc:creator>Eduardo Fuentes</dc:creator><description>For the KC level change (faster) you can do what I described in the attached screenshot.&lt;br /&gt;&lt;br /&gt;If that doesn&amp;#39;t work you can try the plug-in passing this particular folder to confirm the issue is what is explained in the article.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/11/disable_5F00_req_5F00_approval_5F00_for_5F00_kc.png"&gt;&lt;img src="/cfs-filesystemfile/__key/communityserver-discussions-components-files/11/disable_5F00_req_5F00_approval_5F00_for_5F00_kc.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue with getdocumentsfromfolder function</title><link>https://community.appian.com/thread/40097?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 07:29:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e580170b-397d-4523-a7f8-0844d7ece570</guid><dc:creator>garym</dc:creator><description>&lt;br /&gt;@Eduardo - OK I think I understand now.  Basically, use this Remove Approval Required smart service after any add folder task to ensure that the approval required is false.  Is that what needs to be done?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue with getdocumentsfromfolder function</title><link>https://community.appian.com/thread/40095?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 07:10:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:61e043e5-e2b9-4939-bbb0-23cce35d0465</guid><dc:creator>garym</dc:creator><description>@Eduardo - How do you disable the constraint within the KC that contains the folder?&lt;br /&gt;&lt;br /&gt;Also, for the article that you mentioned, the Remove Approval Required smart service expects a folder as the input.  How would I remove the approval required at the KC level?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue with getdocumentsfromfolder function</title><link>https://community.appian.com/thread/40092?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 06:39:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:66085d56-9363-4a3c-a2b8-f422b9464ca0</guid><dc:creator>Eduardo Fuentes</dc:creator><description>1. If the issue is the &amp;quot;Pending approval&amp;quot; then the solution is to disable that constraint within the KC that contains the folder.&lt;br /&gt;&lt;br /&gt;If that doesn&amp;#39;t work refer to &lt;a href="https://forum.appian.com/suite/help/16.3/kb/kb-1192.html"&gt;forum.appian.com/.../kb-1192.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;That should make the documents searchable.&lt;br /&gt;&lt;br /&gt;2. Another option is that the KC containing the folders is marked as &amp;quot;Hide from search results&amp;quot; which you can also disable in the KC properties.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue with getdocumentsfromfolder function</title><link>https://community.appian.com/thread/40086?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 04:43:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d967bd8b-9611-4763-ad00-a8acb0b6e203</guid><dc:creator>sikhivahans</dc:creator><description>@poornah It may seem to you that it's working but it won't work as intended provided if you perform some more testing(just reverse the order of arguments and see what happens). Please find attached the picture and you can understand the difference. In the first example, though you pass the values by keyword, the function still takes first argument as folderId(casting the value of false to 0) and retrieving all the documents that are in the folder that has 0 as id. You won't observe this kind of behavior with system functions or expression rules.&lt;br /&gt;&lt;br /&gt;At a high level it appears that we are making use of 'by keyword' approach, but behind the scenes it's actually making use of 'by position' approach.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue with getdocumentsfromfolder function</title><link>https://community.appian.com/thread/40076?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 02:23:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ba3855a4-16ab-42e5-969c-3682afddc0b4</guid><dc:creator>Poorna Guduri</dc:creator><description>Is it really so? I could see proper results even with the keyword syntax. Please find the snapshot for reference.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/11/keyword-syntax.PNG"&gt;&lt;img src="/cfs-filesystemfile/__key/communityserver-discussions-components-files/11/keyword-syntax.PNG" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue with getdocumentsfromfolder function</title><link>https://community.appian.com/thread/40074?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 02:18:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:56ca98a5-fa9d-4730-aa79-48ff1309e316</guid><dc:creator>Luke Schurman</dc:creator><description>getdocumentsfromfolder doesn&amp;#39;t support keyword syntax&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue with getdocumentsfromfolder function</title><link>https://community.appian.com/thread/40073?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 01:50:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:94fa6ba4-9809-4524-94ce-237f7a39e4cd</guid><dc:creator>Poorna Guduri</dc:creator><description>Thanks Gary for updating the issue and thanks to Ramesh as well for pointing to the article.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue with getdocumentsfromfolder function</title><link>https://community.appian.com/thread/40071?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 01:47:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48d208b3-2af0-463e-9a1a-c953ac440d67</guid><dc:creator>Ram</dc:creator><description>Hi Gary,&lt;br /&gt;&lt;br /&gt;I think this forum post might help you on this.&lt;br /&gt;&lt;a href="/search?q=OriginalPostID-220820"&gt;forum.appian.com/.../e-220820&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue with getdocumentsfromfolder function</title><link>https://community.appian.com/thread/40070?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 01:47:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a9221255-f9a0-4f2a-aff5-d6e23bc20c83</guid><dc:creator>Poorna Guduri</dc:creator><description>Ah.. that make sense. The document(s) is/are not readily available to make use of. But I am curious to know why this pending approval is coming?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue with getdocumentsfromfolder function</title><link>https://community.appian.com/thread/40069?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 01:43:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d75592f5-64f8-4794-a6bc-b1a5208b1a75</guid><dc:creator>garym</dc:creator><description>This might have something to do with it.  If I try to click on any of the documents in the folder, I get an message saying &amp;quot;This document is pending approval&amp;quot;.  &lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/11/screenshot.JPG"&gt;&lt;img src="/cfs-filesystemfile/__key/communityserver-discussions-components-files/11/screenshot.JPG" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue with getdocumentsfromfolder function</title><link>https://community.appian.com/thread/40067?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 01:35:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5f0ac5c0-1e01-4539-a99c-aedb1d0c87ea</guid><dc:creator>garym</dc:creator><description>Thanks.  I did try another using the expression rule on another folder with documents and it actually returned a list of documents.  There must be something about this specific folder that it does not like.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue with getdocumentsfromfolder function</title><link>https://community.appian.com/thread/40066?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 01:34:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08031419-db79-4aca-9182-0d633f4f9953</guid><dc:creator>Poorna Guduri</dc:creator><description>@gary, Give it a try as Ramesh suggested. But if it does not solve your problem, you may need to look into the logs to find if the log says something about the execution of this function.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue with getdocumentsfromfolder function</title><link>https://community.appian.com/thread/40065?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 01:27:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ac5f0b12-7788-488d-aade-0fa6c4229a25</guid><dc:creator>Ram</dc:creator><description>Hi Gary,&lt;br /&gt;&lt;br /&gt;The Custom Content Functions jar might be corrupted try to download the jar from forum and import it again.&lt;br /&gt;For your reference i am proving the link to the Custom Content Functions shared component.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://forum.appian.com/suite/tempo/records/item/lMBCLGOdlMUpdGVqW3dQaIKmclBmvvNEj8vu_cjb7T-5YiPr4Fu8ly5Yj1s09uenE4RYzA8zKyx7eiUheigLnP0HseAqr85fQ4C2iA26S3m6XdDfQ/view/summary"&gt;forum.appian.com/.../summary&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue with getdocumentsfromfolder function</title><link>https://community.appian.com/thread/40064?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 00:56:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:34d76ced-3c4b-4c1a-a4b8-140099da1aab</guid><dc:creator>Poorna Guduri</dc:creator><description>I am not sure why is it causing an issue but what my suggestion is to make use of folder() function if at all you do not need a recursive search for the documents inside the target folder. Ex: folder(pv!targetFodlerId,&amp;quot;documentChildren&amp;quot;)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue with getdocumentsfromfolder function</title><link>https://community.appian.com/thread/40063?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 00:52:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:492e8628-db94-42a8-bb27-1973fc1cc65e</guid><dc:creator>garym</dc:creator><description>Hi Poornah, thanks for responding.  I did try setting the recursiveSearch to false() and I still don&amp;#39;t get the list of documents that I am expecting.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue with getdocumentsfromfolder function</title><link>https://community.appian.com/thread/40062?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 00:50:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a52e5ce7-36f3-4fd8-bfd1-d792b574aa0f</guid><dc:creator>Poorna Guduri</dc:creator><description>Hi gary, just a quick one - do you need a recursive search for the documents? If not, you can make use of the folder() function to fetch the documents inside the folder. Now, the folder() function has 2 new properties - documentChildren, folderChildren - with 16.x version.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue with getdocumentsfromfolder function</title><link>https://community.appian.com/thread/40061?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 00:41:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:138c19fa-af49-4fdb-b27c-cb5ba55b01c6</guid><dc:creator>garym</dc:creator><description>...rned. I have provided the expression rule screenshot.  &lt;br /&gt;&lt;br /&gt;Any help would be much appreciated?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>