09-27-2021 04:10 AM
Hi all,
i'm trying to accomplish a simple model for a smart folder:
i've a custom model applied to a lot of standard folders, one aspect of the model is "fascli:RefercePerson" which could be A, B, C... while A, B, C are also the username used in alfresco.
The smart folder should search in the site and select only the folders where fascli:ReferencePerson == current username.
The first part is ok, i can query in the node browser for fascli:referencePerson == A (or B etc) but i don't know how use current_username variable as comparing value instead of a static string.
Thanks in advance to all!
09-28-2021 06:39 AM
If you check the documentation, you will find that you can use the placeholder %CURRENT_USER% in a template to fill a condition that should use the current user's name.
09-28-2021 06:39 AM
If you check the documentation, you will find that you can use the placeholder %CURRENT_USER% in a template to fill a condition that should use the current user's name.
09-29-2021 03:26 AM
For other utility here the string i used:
(PATH:'/app:company_home/st:sites/cm:my-private-site/cm:documentLibrary/cm:Customers/*' AND TYPE:'cusfil:CustomerFile' ) AND cusfil:Referent: '%CURRENT_USER%'
Explore our Alfresco products with the links below. Use labels to filter content by product module.