cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with getContainer

rodrigoa
Champ in-the-making
Champ in-the-making
Good Morning,

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);

but did not work.

Thanks in advance,

Rodrigo.
2 REPLIES 2

jpotts
World-Class Innovator
World-Class Innovator
Rodrigo,

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.

Jeff

rodrigoa
Champ in-the-making
Champ in-the-making
Jeff,

Thank you very much for your help. I used like you said:

var formatWordPubliees = documentLibraryPubliees.childByNamePath("formatWord");

and worked.

Best Regards,

Rodrigo.
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.