<?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 How to list files metadata (Creation / Modification dates) for a given folder in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-list-files-metadata-creation-modification-dates-for-a/m-p/93930#M27750</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How to list files metadata (File name + Creation &amp;amp; Modification dates) for a given folder ?&lt;BR /&gt;Folder can also contain sub-folders.&lt;/P&gt;&lt;P&gt;JSON / CURL then CSV file&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Sun, 18 Oct 2020 21:24:28 GMT</pubDate>
    <dc:creator>Kiwi</dc:creator>
    <dc:date>2020-10-18T21:24:28Z</dc:date>
    <item>
      <title>How to list files metadata (Creation / Modification dates) for a given folder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-list-files-metadata-creation-modification-dates-for-a/m-p/93930#M27750</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How to list files metadata (File name + Creation &amp;amp; Modification dates) for a given folder ?&lt;BR /&gt;Folder can also contain sub-folders.&lt;/P&gt;&lt;P&gt;JSON / CURL then CSV file&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 18 Oct 2020 21:24:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-list-files-metadata-creation-modification-dates-for-a/m-p/93930#M27750</guid>
      <dc:creator>Kiwi</dc:creator>
      <dc:date>2020-10-18T21:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to list files metadata (Creation / Modification dates) for a given folder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-list-files-metadata-creation-modification-dates-for-a/m-p/93931#M27751</link>
      <description>&lt;P&gt;AFAIK, There is no api OOTB that can provide the info you are requesting. May be any &lt;A href="https://api-explorer.alfresco.com/api-explorer" target="_self" rel="nofollow noopener noreferrer"&gt;V1 APIs&lt;/A&gt; may provide some details, search if you can find something.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;You can also write a java backed/js repository WebScript that will execute search against repository. The result set will have list of nodeRefs. Using the nodeRef you can extract all the required info and return json or write to excel/csv.&lt;/P&gt;

&lt;P&gt;here is an example of js WebScript, you can take reference from here and create/update WebScript's search query accordingly and extract info.&lt;/P&gt;
&lt;P&gt;&lt;A title="List Folder info" href="https://hub.alfresco.com/t5/alfresco-content-services-forum/how-can-i-get-a-path-of-folder-and-sub-folder-in-a-site/td-p/190213" target="_blank" rel="noopener nofollow noreferrer"&gt;List Folder Info&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can update the AND query to return cm:content type instead of folder and extract any other additional info as needed&lt;/P&gt;
&lt;PRE class="lia-code-sample language-javascript"&gt;&lt;CODE&gt;query &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; query &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;' AND (TYPE:"cm:content")'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 18 Oct 2020 22:19:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-list-files-metadata-creation-modification-dates-for-a/m-p/93931#M27751</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-10-18T22:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to list files metadata (Creation / Modification dates) for a given folder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-list-files-metadata-creation-modification-dates-for-a/m-p/93932#M27752</link>
      <description>&lt;P&gt;You can try api-explorer api to get children of given folder.&lt;/P&gt;&lt;P&gt;&lt;A href="https://api-explorer.alfresco.com/api-explorer/#!/nodes/listNodeChildren" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api-explorer.alfresco.com/api-explorer/#!/nodes/listNodeChildren&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 05:05:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-list-files-metadata-creation-modification-dates-for-a/m-p/93932#M27752</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2020-10-19T05:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to list files metadata (Creation / Modification dates) for a given folder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-list-files-metadata-creation-modification-dates-for-a/m-p/93933#M27753</link>
      <description>&lt;P&gt;Thank you abhinav for your reply.&lt;/P&gt;&lt;P&gt;- I registered the 2 files&amp;nbsp; desc.xml and html.flt ( .js not yet involved)&lt;BR /&gt;- I refreshed the WebScript Extensions Ok&lt;/P&gt;&lt;P&gt;Now what is a site 'test" you referred in the URL&lt;BR /&gt;&lt;A href="http://127.0.0.1:8080/alfresco/service/abhinav/getFolderInfo" target="_blank" rel="nofollow noopener noreferrer"&gt;http://127.0.0.1:8080/alfresco/service/abhinav/getFolderInfo&lt;/A&gt;?&lt;STRONG&gt;siteShortName&lt;/STRONG&gt;=&lt;STRONG&gt;test&lt;/STRONG&gt;&amp;amp;skipCount=0&amp;amp;maxCount=100&lt;/P&gt;&lt;P&gt;Site in Alfresco terminology ?&amp;nbsp; if I want to test the scripts against one of my sites ? I am new to alfresco&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 20:47:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-list-files-metadata-creation-modification-dates-for-a/m-p/93933#M27753</guid>
      <dc:creator>Kiwi</dc:creator>
      <dc:date>2020-10-20T20:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to list files metadata (Creation / Modification dates) for a given folder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-list-files-metadata-creation-modification-dates-for-a/m-p/93934#M27754</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;Site in Alfresco terminology ?&amp;nbsp; if I want to test the scripts against one of my sites ? I am new to alfresco&lt;/P&gt;

&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes Site is a space which you can create via Share interface. To execute the script againt one of your sites, you need to provide the short name of the site. You must register the controller (.get.js) file in order to successfully execute the search query.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 03:24:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-list-files-metadata-creation-modification-dates-for-a/m-p/93934#M27754</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-10-21T03:24:40Z</dc:date>
    </item>
  </channel>
</rss>

