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
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.