<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Fetching files list from folder in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/fetching-files-list-from-folder/m-p/112824#M31415</link>
    <description>&lt;P&gt;Dear Team,&lt;/P&gt;&lt;P&gt;I need to get list of files information of one folder by using folder name from site.&lt;/P&gt;&lt;P&gt;Could you please help on this!&lt;/P&gt;&lt;P&gt;Kind &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Aishwarya Jadhav.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 09:02:23 GMT</pubDate>
    <dc:creator>aishu</dc:creator>
    <dc:date>2020-11-25T09:02:23Z</dc:date>
    <item>
      <title>Fetching files list from folder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetching-files-list-from-folder/m-p/112824#M31415</link>
      <description>&lt;P&gt;Dear Team,&lt;/P&gt;&lt;P&gt;I need to get list of files information of one folder by using folder name from site.&lt;/P&gt;&lt;P&gt;Could you please help on this!&lt;/P&gt;&lt;P&gt;Kind &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Aishwarya Jadhav.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 09:02:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetching-files-list-from-folder/m-p/112824#M31415</guid>
      <dc:creator>aishu</dc:creator>
      <dc:date>2020-11-25T09:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching files list from folder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetching-files-list-from-folder/m-p/112825#M31416</link>
      <description>&lt;P&gt;++ adding one point.&lt;/P&gt;&lt;P&gt;I need api for this&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 09:03:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetching-files-list-from-folder/m-p/112825#M31416</guid>
      <dc:creator>aishu</dc:creator>
      <dc:date>2020-11-25T09:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching files list from folder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetching-files-list-from-folder/m-p/112826#M31417</link>
      <description>&lt;P&gt;You can use REST API for search.&lt;/P&gt;&lt;P&gt;&lt;A href="https://api-explorer.alfresco.com/api-explorer/#/search" target="_blank" rel="noopener nofollow noreferrer"&gt;https://api-explorer.alfresco.com/api-explorer/#/search&lt;/A&gt;&lt;/P&gt;&lt;P&gt;URL :&amp;nbsp;&lt;SPAN&gt;http://localhost:8080/alfresco/api/-default-/public/search/versions/1/search (post method)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Body :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;BR /&gt;"query": {&lt;BR /&gt;"query": "PATH:\"/app:company_home/st:sites/cm:swsdp/cm:documentLibrary/cm:test//*\"",&lt;BR /&gt;"language": "afts"&lt;BR /&gt;}&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here&amp;nbsp;&lt;STRONG&gt;swsdp&amp;nbsp;&lt;/STRONG&gt;is site-name and &lt;STRONG&gt;test&amp;nbsp;&lt;/STRONG&gt; is folder name.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 11:06:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetching-files-list-from-folder/m-p/112826#M31417</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2020-11-25T11:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching files list from folder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetching-files-list-from-folder/m-p/112827#M31418</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/10902"&gt;@aishu&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/36939"&gt;@sanjaybandhniya&lt;/A&gt;&amp;nbsp;beat me to it! You can also use Lucene search query in a very similar way.&lt;/P&gt;
&lt;PRE&gt;http://localhost/alfresco/api/-default-/public/search/versions/1/search
&lt;/PRE&gt;
&lt;P&gt;The query body is as follows:&lt;/P&gt;

&lt;PRE&gt;{&lt;BR /&gt;"query": {&lt;BR /&gt;"query": "PATH:\"/app:company_home/st:sites/cm:publicSiteAPI/cm:documentLibrary/cm:Uploads//*\" AND (TYPE:\"cm:content\" OR TYPE:\"cm:folder\")",&lt;BR /&gt;"language": "lucene"&lt;BR /&gt;},&lt;BR /&gt;"include": ["properties"]&lt;BR /&gt;} &lt;/PRE&gt;
&lt;P&gt;This limits the query to all files or folders under the &lt;STRONG&gt;Uploads&lt;/STRONG&gt; folder of the &lt;STRONG&gt;publicSiteAPI&lt;/STRONG&gt; site.&lt;/P&gt;
&lt;P&gt;Kudos to&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/73519"&gt;@gtarafder&lt;/A&gt;&amp;nbsp;for posting this solution &lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/alfresco-api-to-list-all-files-in-a-site-node-folder-etc/m-p/40020#M2229" target="_self" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 14:59:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetching-files-list-from-folder/m-p/112827#M31418</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-11-25T14:59:05Z</dc:date>
    </item>
  </channel>
</rss>

