06-29-2020 11:05 AM
Hello, I would like to move some documents inside TaskListener.
I use:
var node = companyhome.childByNamePath(DESTINATION) doc.move(node);
How am I supposed to write the DESTINATION ?
Let's say the path is: (copied from the node browser)
/app:company_home/st:sites/cm:sample-project/cm:documentLibrary/cm:_x0030_Directory_x0020_With_x0020__x0020_Whitespace/cm:_x0030_Final
(Sites/sample project/documentLibrary/Directory With Whitespace/Final)
The more specific question, how to enter the destination with a whitespace character? (I tried the one above but it does not work )
Error: Caused by: java.lang.IllegalArgumentException: Destination Node is a mandatory parameter
06-29-2020 11:49 AM
For future readers, path CAN contain whitespaces and it should be formatted just as you see it (without st:, cm:, etc).
For example:
Sites/my-site/documentLibrary/Dir With Whitespace/Final
is correct.
06-29-2020 11:49 AM
For future readers, path CAN contain whitespaces and it should be formatted just as you see it (without st:, cm:, etc).
For example:
Sites/my-site/documentLibrary/Dir With Whitespace/Final
is correct.
07-01-2020 09:54 AM
Hi @upforsin,
Thanks for pposting your solution - really helpful to other users.
Cheers,
Explore our Alfresco products with the links below. Use labels to filter content by product module.