How to find how many folders and documents are present in a site?
Can someone please help with this?
You can use this webscript to get list.(inbuilt webscript)
You can create custom webscript to list folder.
https://docs.alfresco.com/5.2/concepts/ws-folderListing-intro.html
If alfresco has a web script for getting number of folders in a site, can you please share?
This should do: http://localhost:8080/alfresco/service/slingshot/doclib/doclist/node/site/{siteId}/documentlibrary/
Hi:
Just put in Alfresco Share Search. For documents:
SITE:"shortsitename" and TYPE:"cm:content"
For folders:
SITE:"shortsitename" and TYPE:"cm:folder"
The number of documents or folders is shown in the first page of the results of the search. You can use only TYPE: if you select SITE context in Alfresco Search or selecting site facet.
You can use REST API too:
https://www.zylk.net/es/web-2-0/blog/-/blogs/listing-thousands-of-noderefs-with-alfresco-rest-api
Kind regards.
--C.
With this web script, i'm only getting count of folders in document library not their sub folders, I need to get the sub-folders count also included, sorry din't mention it before.
For that type of structure,you have to create your own script.
this is only giving the folders in document library not sub folders , can you provide me the script for sub folders count also.
Hi,
The result of document count using the webscript you have sent me is showing max 1000 counts only, is there any way to get the correct count(i.e more than 1000).
The sites with under 1000 document is showing correct count.
How can one use this api in java code, I have similar kind of requirement and I tried calling this api through the code but could not achieve this due to authentication issue(401 error).
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.