We are trying to fetch the list of folders from Data Dictionary. However the CMIS query does not work. Following are the queries we tried.
select * from cmis:folder where CONTAINS('PATH:"//app:company_home/cmata Dictionary/*"')
select * from cmis:folder where CONTAINS('PATH:"//app:company_home/Data Dictionary/*"')
Can anyone suggest the right query to use
Solved! Go to Solution.
Hi,
This will fetch you all the children of data dictionary folder.
SELECT * FROM cmis:folder WHERE CONTAINS('PATH:"//app:company_home/app:dictionary/*"')
Thanks,
Kalpesh
Hi,
This will fetch you all the children of data dictionary folder.
SELECT * FROM cmis:folder WHERE CONTAINS('PATH:"//app:company_home/app:dictionary/*"')
Thanks,
Kalpesh
Thanks
Hi,
Is there a way to get the folders inside too?
Sample query with nested folders:
SELECT * FROM cmis:folder WHERE CONTAINS('PATH:"//app:company_home/app:dictionary//*"')
Some other approach described by @afaust in https://hub.alfresco.com/t5/alfresco-content-services-forum/get-all-childs-of-a-node/td-p/76864 (using FTS instead of CMIS syntax)
ANCESTOR:"workspace://SpacesStore/b9f46070-fd06-4a72-8389-e3c76ca574a1" AND TYPE:"cm:folder"
I made a mistake, I wanted to say documents too and not folders. The title mentions folders/documents but the solution provides only folders.
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.