{"id":8761,"date":"2021-01-06T11:37:20","date_gmt":"2021-01-06T19:37:20","guid":{"rendered":"https:\/\/minisoft.com\/support\/?p=8761"},"modified":"2021-02-25T16:15:13","modified_gmt":"2021-02-26T00:15:13","slug":"retrieve-a-file-list-in-a-project","status":"publish","type":"post","link":"https:\/\/alt2.minisoft.com\/support\/retrieve-a-file-list-in-a-project\/","title":{"rendered":"Retrieve a File List in a Project (Document List)"},"content":{"rendered":"\n<p>1. Create an archive for the folder that you are going to look in. Navigate to the Archives tab of the Project Properties by right clicking the project and selecting Properties > Archives. In this example the source folder is: <code>C:\\Minisoft\\eFORMz_6\\output\\TestResults<\/code><\/p>\n\n\n\n<p>2. Create a file qualifier variable to if you want to search for specific files. Example: <code>Sample-*.xml<\/code><\/p>\n\n\n\n<p>3. Create a variable for each piece of file information you need. Example: <code>FileName<\/code><\/p>\n\n\n\n<p>4. Create a procedure to call the File List function. Use variable is N\/A.<\/p>\n\n\n\n<p>5. Select File List from the list of actions and configure as such:<\/p>\n\n\n\n<p>a. <strong>Archive<\/strong> -&gt; Select the archive you created in step 1.<\/p>\n\n\n\n<p>b. <strong>Folder<\/strong> -&gt; This can be blank. If you need to go one level down from the archive path, you would add the additional folder path(s) here.<\/p>\n\n\n\n<p>c. <strong>Qualifier<\/strong> -&gt; This can be blank. It will return all of the files in the archive(\/\/Folder) path. You can add the qualifier that you created in step 2.<\/p>\n\n\n\n<p>d. <strong>Search Operation<\/strong> -&gt; This defaults to Files.<\/p>\n\n\n\n<p>e. <strong>Sort Operation<\/strong> -&gt; This defaults to No Sort. Configuration is available for sorting by file meta data.<\/p>\n\n\n\n<p>f. <strong>File Information<\/strong> -&gt; Click New to create a new mapping. File list can have one to many attributes. If multiple files are returned, the mapped variables will display as arrays.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2021\/01\/FL3.png\"><img decoding=\"async\" loading=\"lazy\" width=\"373\" height=\"182\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2021\/01\/FL3.png\" alt=\"\" class=\"wp-image-8762\" srcset=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2021\/01\/FL3.png 373w, https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2021\/01\/FL3-300x146.png 300w, https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2021\/01\/FL3-150x73.png 150w, https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2021\/01\/FL3-250x122.png 250w, https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2021\/01\/FL3-369x180.png 369w\" sizes=\"(max-width: 373px) 100vw, 373px\" \/><\/a><\/figure>\n\n\n\n<p>Select <em><strong>Attribute<\/strong><\/em> -&gt; Defaults to file name. Example: <code>Sample-1.xml<\/code>. <em>Absolute Name<\/em> will return the file name and its complete path in the system. Example: <code>c:\\Minisoft\\eFORMz_6\\output\\TestResults\\Sample-1.xml<\/code>.<em> Relative Name<\/em> will return the file name and any path added to the base archive path. Example: If the archive path was <code>c:\\Minisoft\\eFORMz_6\\output\\<\/code> and the user added a folder variable of TestResults the Relative path would come back as <code>TestResults\\Sample-1.xml<\/code>. If no folder variable was added this returns the base file name. <em>Extension<\/em> will return just the file name extension. <em>Last modified timestamp<\/em> will return the last modified timestamp. <em>Type<\/em> will return what the return value is, such as the file or the folder.<\/p>\n\n\n\n<p>Select <em><strong>Variable<\/strong><\/em> to place the incoming data. If multiple files are return the mapped variables will display as arrays.<\/p>\n\n\n\n<p>g. Click OK.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2021\/01\/FL1.png\"><img decoding=\"async\" loading=\"lazy\" width=\"412\" height=\"529\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2021\/01\/FL1.png\" alt=\"\" class=\"wp-image-8764\" srcset=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2021\/01\/FL1.png 412w, https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2021\/01\/FL1-234x300.png 234w, https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2021\/01\/FL1-117x150.png 117w, https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2021\/01\/FL1-250x321.png 250w, https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2021\/01\/FL1-140x180.png 140w, https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2021\/01\/FL1-389x500.png 389w\" sizes=\"(max-width: 412px) 100vw, 412px\" \/><\/a><\/figure>\n\n\n\n<p>Once configured correctly the mapped variables will display the list of attributes you have selected.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2021\/01\/FL2.png\"><img decoding=\"async\" loading=\"lazy\" width=\"758\" height=\"522\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2021\/01\/FL2.png\" alt=\"\" class=\"wp-image-8763\" srcset=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2021\/01\/FL2.png 758w, https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2021\/01\/FL2-300x207.png 300w, https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2021\/01\/FL2-150x103.png 150w, https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2021\/01\/FL2-250x172.png 250w, https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2021\/01\/FL2-550x379.png 550w, https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2021\/01\/FL2-261x180.png 261w, https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2021\/01\/FL2-436x300.png 436w, https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2021\/01\/FL2-726x500.png 726w\" sizes=\"(max-width: 758px) 100vw, 758px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>1. Create an archive for the folder that you are going to look in. Navigate to the Archives tab of the Project Properties by right clicking the project and selecting Properties > Archives. In this example the source folder is: C:\\Minisoft\\eFORMz_6\\output\\TestResults 2. Create a file qualifier variable to if you want to search for specific [&hellip;]<\/p>\n","protected":false},"author":75,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[80,3],"tags":[38,677,676],"_links":{"self":[{"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/8761"}],"collection":[{"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=8761"}],"version-history":[{"count":4,"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/8761\/revisions"}],"predecessor-version":[{"id":9060,"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/8761\/revisions\/9060"}],"wp:attachment":[{"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=8761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=8761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=8761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}