10-16-2019 03:42 AM
10-16-2019 03:54 AM
Hello,
10-16-2019 07:34 AM
A guess of answer from https://doc.nuxeo.com/nxdoc/nxql/ :
ecm:ancestorId: the id of an ancestor of the document (parent, grand-parent, etc., up to the root). This is only useable in a
WHERE
clause with the syntaxecm:ancestorId = 'some-doc-id'
orecm:ancestorId <> 'some-doc-id'
. It's an alternative toecm:path STARTSWITH '/some/doc/path'
if you know the id instead of the path. See also ecm:path. (Since Nuxeo 5.9.6)
So If you're looking for a NXQL query to be used in a Nuxeo client, SELECT * FROM Folder WHERE ecm:ancestorId = <top folder id>
or SELECT * FROM Document WHERE ecm:ancestorId = <top folder id> AND ecm:primaryType IN ('Folder', 'your custom type'...)
might look like an answer to your question.
Would you want only first level subfolders, the NXQL query would look like: SELECT * FROM Folder WHERE ecm:parentId= <top folder id>
or SELECT * FROM Document WHERE ecm:parentId = <top folder id> AND ecm:primaryType IN ('Folder', 'your custom type'...)
10-18-2019 01:05 AM
Hi,
10-18-2019 01:14 AM
Hi Patrick,
10-18-2019 02:00 AM
There is nothing out of the box except all levels or first level. You can however automate your custom need using some JavaScript automation,
10-18-2019 01:13 AM
Hi Patrick,
Getting all the sub-folders of a folder worked. Is there any way I can get sub-folders only till required level. I mean if I need only till second level or third level. Can we control how many levels to get?
Thanks in advance!!
10-18-2019 02:00 AM
There is nothing out of the box except all levels or first level. You can however automate your custom need using some JavaScript automation,
10-18-2019 02:47 AM
I'm working on the backend only with java client I have no idea about java script. Is there a way we can do it on backend
01-21-2020 10:54 PM
hi Gregory [Gregory Carlin](https
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.