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!
Solved! Go to Solution.
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.
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.
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%'
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.