I have created one folder into the Document Library folder from one of my sites, and now I need to transfer the files to this folder. Is there any way to this?
I tried this code:
var formatWordPubliees= publieesSite.getContainer("documentLibrary/FormatWord"); bpm_package.children[0].move(formatWordPubliees);
The getContainer call expects a container ID. In this case, the container ID is "documentLibrary". That returns a folder which will represent the "documentLibrary" folder in the Sites folder. From there, you can use the ScriptNode API to get the folder's children until you find the one you want. Then the move should work.