As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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)
https://localhost:8080/alfresco/s/slingshot/doclib/doclist/documents/site/{siteid}/documentLibrary?filter=all
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.
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).