08-16-2018 11:19 AM
1I have an aspect that I have associated with multiple documents. For example lests call the aspect OrderAspect.
The below query works when I fetch all nodes that have a location property from OrderAspect set to 'WAREHOUSE-A'
SELECT * FROM oarderAspect WHERE oa:Location ='WAREHOUSE-A'
1. How can I extend this query to get all documents that have this aspect and the location value as 'WAREHOUSE-A'
2. Can I extend this query to search within a folder path or sit? I would like to list all the documents within a folder (including subfolder) or a site that has OrderAspect with property location set to 'WAREHOUSE-A'.
08-20-2018 06:29 AM
Hi - Is there a way to do this? Would any expert be able to opine?
08-20-2018 06:34 AM
try like this you will get all the documents associated with aspect orderAspect of location 'warehouse'
SELECT * FROM cmis:document AS d JOIN oarderAspect as p ON d.cmisbjectId = p.cmisbjectId WHERE oa:Location ='WAREHOUSE-A'
Explore our Alfresco products with the links below. Use labels to filter content by product module.