cancel
Showing results for 
Search instead for 
Did you mean: 

Smart Folder compare custom aspect with current username

TheCondor
Champ on-the-rise
Champ on-the-rise

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!

1 ACCEPTED ANSWER

afaust
Legendary Innovator
Legendary Innovator

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.

View answer in original post

2 REPLIES 2

afaust
Legendary Innovator
Legendary Innovator

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.

TheCondor
Champ on-the-rise
Champ on-the-rise

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%'