cancel
Showing results for 
Search instead for 
Did you mean: 

Code to initialize documentlibrary??

tb13
Champ in-the-making
Champ in-the-making
Hi,
I am desperatly looking for the piece of code that inializes the documentlibrary AFTER the creation of a new site.

The documentlibrary is present, only after I have visited it. I would like to silently invoke it without having the need to visit it, and afterwards save some files to the node.

Can anyone here help me out please? :?
2 REPLIES 2

mikeh
Star Contributor
Star Contributor
You just need to make any request to the doclist data webscripts. Most of the time, the container will be created due to the "Recently Modified Documents" dashlet which does exactly that.

The most lightweight way of creating the container is to call the following from a Share web-tier webscript:
connector.get("/slingshot/doclib/container/" + siteId + "/documentLibrary")

Thanks,
Mike

tb13
Champ in-the-making
Champ in-the-making
Thank You sooo much!