cancel
Showing results for 
Search instead for 
Did you mean: 

alfresco custom action access folder by name

leftright
Champ on-the-rise
Champ on-the-rise
I have a action where via a part of document name, you find the name of a folder in userhome - name of the user,
and you move document there. I have started working by modifying the existing move action and have come to the following problem.
How do I access the nodeREf of the folder, in short I have the name of folder that lies in userhomes, how do I get the NodeRef of this folder?
Thank you for your answers
2 REPLIES 2

rjohnson
Star Contributor
Star Contributor
Try

userhome.childByNamePath("folder-name");

provided the folder is directly under the user home directory

I have forgoten something important to say in my post, the action is in JAVA not javascript