Team,
I am using the below query to get the document count in the entire repository. How do I modify this query to get the count within a particular folder in the repository please?
select count(*) from toc where etype = -2
Thanks
Priya
Team,
I am using the below query to get the document count in the entire repository. How do I modify this query to get the count within a particular folder in the repository please?
select count(*) from toc where etype = -2
Thanks
Priya
Hi Priya,
Do you need to go through SQL? You can get a count of all entries within a particular folder by running 'calculate size' on the folder in question through the Client.
Thanks. Yes, we will need to go through SQL as we have an automated process that gives us the document count for all the repositories.
Priya
You can use the 'parentid' column to filter for all documents contained within a specific folder. The parentid value will be the tocid of the parent folder.
Note that this only will cover immediate children. You would need to construct the folder tree manually if you need to do multiple levels.