04-22-2020 08:06 AM
Hi,
I have following code
nodes = search.query({ language: 'fts-alfresco', query: 'ANCESTOR:"workspace://SpacesStore/a0617f12-8eba-4dce-a5b5-59afec623010"+nodeType:"cm:folder"', maxItems: 2000 });
But this gives me also all documents in all sub-folders. I only want objects of type folder.
All help appreciated.
04-22-2020 11:09 AM
Have tou tried a query like:
'ANCESTOR:"workspace://SpacesStore/a0617f12-8eba-4dce-a5b5-59afec623010" AND TYPE:"cm:folder"'
04-30-2020 05:17 AM
If I activate the rule by triggering it (modify a folder) then it executes only once...
05-06-2020 01:42 AM
I contacted Alfresco, the rule running for each sub-folder is 'by design'. If you want it to run only once, you have to trigger it in the folder itself, and not by 'Run rule for this folder'.
05-06-2020 05:29 AM
Thanks for the update.
Explore our Alfresco products with the links below. Use labels to filter content by product module.