<?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 to find all documents belong to certain folder?</title><link>https://community.appian.com/discussions/f/new-to-appian/22652/how-to-find-all-documents-belong-to-certain-folder</link><description>I am trying to delete a folder&amp;#39;s all documents, at interface expression mode, how to write the code and how to express the document name at a!deleteDocument(document:??????). 
 Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: how to find all documents belong to certain folder?</title><link>https://community.appian.com/thread/88641?ContentTypeID=1</link><pubDate>Fri, 03 Dec 2021 09:49:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:78d7c1ae-b168-41c9-8a5c-9fdce1434247</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/21.4/Process_Node_and_Smart_Service_Properties.html#multiple-instances"&gt;docs.appian.com/.../Process_Node_and_Smart_Service_Properties.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to find all documents belong to certain folder?</title><link>https://community.appian.com/thread/88640?ContentTypeID=1</link><pubDate>Fri, 03 Dec 2021 09:45:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f701d825-a37c-4265-85cb-f045ed553c3b</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;where to find the multiple instances activity, it looks like user input task&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to find all documents belong to certain folder?</title><link>https://community.appian.com/thread/88639?ContentTypeID=1</link><pubDate>Fri, 03 Dec 2021 09:30:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b1c6e0a6-4ea9-4a6c-af03-a7884a1ea40f</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I do not understand your question. What would a user input task help?&lt;/p&gt;
&lt;p&gt;But I assume that this&amp;nbsp;is what you are looking for:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/21.4/Process_Model_Recipes.html#using-multiple-node-instances-in-your-process-flows"&gt;docs.appian.com/.../Process_Model_Recipes.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to find all documents belong to certain folder?</title><link>https://community.appian.com/thread/88638?ContentTypeID=1</link><pubDate>Fri, 03 Dec 2021 09:30:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:68a73874-e19d-4010-81d9-50874001ac87</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;I just made it&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to find all documents belong to certain folder?</title><link>https://community.appian.com/thread/88637?ContentTypeID=1</link><pubDate>Fri, 03 Dec 2021 09:24:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f8169774-35df-4490-8d59-fb6f9dfcaeb7</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;seems it is in category of others of that delete document&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to find all documents belong to certain folder?</title><link>https://community.appian.com/thread/88636?ContentTypeID=1</link><pubDate>Fri, 03 Dec 2021 09:20:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a0a5146a-0472-463c-858e-bb0e2e8ebfff</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;Which one is the thing to set nodes? user input task?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to find all documents belong to certain folder?</title><link>https://community.appian.com/thread/88635?ContentTypeID=1</link><pubDate>Fri, 03 Dec 2021 09:19:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8e2a53e4-b796-4475-b4fd-33c1bb32b6d6</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;You cannot just add inputs and expect this to work!!!&lt;/p&gt;
&lt;p&gt;This node can only delete a single file. To delete multiple you need to execute the node multiple times.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to find all documents belong to certain folder?</title><link>https://community.appian.com/thread/88634?ContentTypeID=1</link><pubDate>Fri, 03 Dec 2021 09:16:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:67dc9762-2f5e-4852-a8b2-37d32e7a7b89</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/62/pastedimage1638522962207v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/62/pastedimage1638522983066v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The first as original one can&amp;#39;t set to be multiple, so i create a new one at second set it to multiple but not works&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to find all documents belong to certain folder?</title><link>https://community.appian.com/thread/88633?ContentTypeID=1</link><pubDate>Fri, 03 Dec 2021 09:15:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5ac3e9a2-feff-4f6f-b071-d17508b6ad75</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Did you set the process variable deletefile to be a multiple in the model?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to find all documents belong to certain folder?</title><link>https://community.appian.com/thread/88632?ContentTypeID=1</link><pubDate>Fri, 03 Dec 2021 09:14:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:95e6ce95-bf42-4402-8e29-6a8780b646f4</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;local!deletefile shows are multiple, but once get into processModel it changes to be single always, though i set property values and others to multiple&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to find all documents belong to certain folder?</title><link>https://community.appian.com/thread/88631?ContentTypeID=1</link><pubDate>Fri, 03 Dec 2021 09:13:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:aad67f8c-f9f9-4566-b544-e7f14fbb4b52</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!oldfile: a!refreshVariable(folder(31338, &amp;quot;documentChildren&amp;quot;)),
  local!file: a!refreshVariable(folder(31338, &amp;quot;documentChildren&amp;quot;)),
  local!deletefile,
  local!oldfilelist,
  local!testfile:rule!testfilecasttype(),
  {
    a!fileUploadField(
      label: &amp;quot;File Upload&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      target: cons!fileUploadConstant,
      maxSelections: 10,
      value: local!file,
      saveInto: {
        a!save(
          target: local!oldfile,
          value: folder(31338, &amp;quot;documentChildren&amp;quot;)
        ),
        /*if(length(local!oldfile)=0,{},a!deleteDocument(document:local!oldfile)),
        */
        a!save(target: local!file, value: save!value),
        a!save(target:local!oldfilelist,value:a!forEach(items:local!oldfile,
        expression:tostring(fv!item)
        /*extract(left(fv!item,20),&amp;quot;:&amp;quot;,&amp;quot;]&amp;quot;),*/
        )),
        a!save(
          target: local!deletefile,
          value: a!forEach(
            items: local!oldfile,
            expression: if(
              contains(local!file, fv!item) = true(),
              {},
              fv!item
            ),
          )
        ),
        a!save(target:local!testfile.file,value:local!oldfilelist),
        a!save(
          target: ri!file.file,
          value: a!forEach(items: local!file, expression: fv!item, )
        ),
        
      },
      fileNames: { fv!file.name },
      validations: {},
      uploadMethods: &amp;quot;CHOOSE_FILE&amp;quot;
    ),
    a!buttonArrayLayout(
      buttons: {
        a!buttonWidget(
          label: &amp;quot;Submit&amp;quot;,
          style: &amp;quot;PRIMARY&amp;quot;,
          submit: true(),
          loadingIndicator: true(),
          saveInto:{
            /*if(*/
              /*or(*/
                /*length(a!flatten(local!deletefile)) = 0,*/
                /*len(local!deletefile) = 0*/
              /*),*/
              /*{},*/
              /*a!deleteDocument(document: local!deletefile)*/
            /*),*/
            /*a!writeToMultipleDataStoreEntities(*/
            /*valuesToStore: {*/
            /*a!entityData(entity: cons!testfileconstant,data:local!testfile),*/
            /*}*/
            /*),*/
            a!startProcess(
              processModel: cons!wangtestfileuploadprocessmodel,
              processParameters: {
                deletefile:local!deletefile,
                testfile:local!testfile,
                
              }
            ),
          }
          
        )
      },
      align: &amp;quot;START&amp;quot;
    ),
    a!milestoneField(
      label:&amp;quot;phase&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      steps: cons!wangtestphase,
      links: {},
      active: 2,
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to find all documents belong to certain folder?</title><link>https://community.appian.com/thread/88630?ContentTypeID=1</link><pubDate>Fri, 03 Dec 2021 09:12:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e85a3024-ea69-4073-91cc-ef8f827bb451</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Do you have a code snippet which shows how you delete the files?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to find all documents belong to certain folder?</title><link>https://community.appian.com/thread/88629?ContentTypeID=1</link><pubDate>Fri, 03 Dec 2021 09:10:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a5fc8a52-1578-4a8a-ade8-25e3343391b6</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/62/pastedimage1638522452805v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;what i create is a file upload interface, when it come in it already shows what and how many documents in that folder,&lt;/p&gt;
&lt;p&gt;i want it could be delete with click on that files, if i just click one, then it deleted successfully, if i try to click two or more files, it just delete the first file i choose, the second or above just keep retaining at there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to find all documents belong to certain folder?</title><link>https://community.appian.com/thread/88628?ContentTypeID=1</link><pubDate>Fri, 03 Dec 2021 09:06:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0bc1e8b8-48c7-40c8-a7f2-40eed7c065d1</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I do not understand your question!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to find all documents belong to certain folder?</title><link>https://community.appian.com/thread/88627?ContentTypeID=1</link><pubDate>Fri, 03 Dec 2021 08:51:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:34dc1637-a516-4862-8e7f-95948af969c4</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;Do you know where to set in order to let it delete multiple documents at once?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to find all documents belong to certain folder?</title><link>https://community.appian.com/thread/88582?ContentTypeID=1</link><pubDate>Thu, 02 Dec 2021 08:23:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:81d83c61-2a51-43b0-bcd3-e3f7e2a39d12</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;You cannot show existing files in a folder inside a fileUploadField.&lt;/p&gt;
&lt;p&gt;But you can add a list following this pattern:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/21.4/document-list-pattern.html"&gt;docs.appian.com/.../document-list-pattern.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to find all documents belong to certain folder?</title><link>https://community.appian.com/thread/88581?ContentTypeID=1</link><pubDate>Thu, 02 Dec 2021 08:18:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fb831064-6e40-4787-96d6-73c67f952287</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/pastedimage1638433051247v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;like this, it is already appeared if the files exists in the folder once reload the interface, how to make it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to find all documents belong to certain folder?</title><link>https://community.appian.com/thread/88580?ContentTypeID=1</link><pubDate>Thu, 02 Dec 2021 08:11:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8f75bdd4-7226-4afb-a244-5d1cc9a6b605</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;Do you know how to let the folder&amp;#39;s existed files already shows up once come to the fileupload interface? The previous problems solved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to find all documents belong to certain folder?</title><link>https://community.appian.com/thread/88578?ContentTypeID=1</link><pubDate>Thu, 02 Dec 2021 07:28:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a77fef5c-6183-4390-b4ac-f28c0fac90f6</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;&lt;a href="https://codeblog.jonskeet.uk/2012/11/24/stack-overflow-question-checklist/"&gt;https://codeblog.jonskeet.uk/2012/11/24/stack-overflow-question-checklist/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I can neither see your screen, nor your code, nor do I know what you want to achieve, what you tried, what failed or anything that enables&amp;nbsp;me to give&amp;nbsp;you an answer.&lt;/p&gt;
&lt;p&gt;I tried to explain this to you already a few times. It is that simple: No details -&amp;gt; No answer!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to find all documents belong to certain folder?</title><link>https://community.appian.com/thread/88577?ContentTypeID=1</link><pubDate>Thu, 02 Dec 2021 07:23:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c9f1a797-fac8-4dcb-ad77-8466192681dc</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;how to get folderId? why each time refresh the interface the folderId return differently?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to find all documents belong to certain folder?</title><link>https://community.appian.com/thread/88575?ContentTypeID=1</link><pubDate>Thu, 02 Dec 2021 07:17:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dae68170-4534-447e-8c77-6f4e5f4622ca</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;As a!deleteDocument can only delete a single document, you will need to create a process to delete multiple documents.&lt;/p&gt;
&lt;p&gt;Documents in Appian are referenced by their ID either in a variable of type Integer or of type Document.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to find all documents belong to certain folder?</title><link>https://community.appian.com/thread/88574?ContentTypeID=1</link><pubDate>Thu, 02 Dec 2021 07:15:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:01c9342a-a524-486c-b9ae-f3dd1e70f439</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;&lt;a href="https://community.appian.com/discussions/f/new-to-appian/22650/file-upload/88572#88572"&gt;community.appian.com/.../88572&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>