gosip icon indicating copy to clipboard operation
gosip copied to clipboard

Request to add document Library

Open MisterFredy opened this issue 3 years ago • 1 comments

im just request to create document library also list by gosip,.

MisterFredy avatar Apr 01 '21 07:04 MisterFredy

Hey @MisterFredy,

Thanks for the interest in dealing with SharePoint in Golang!

A list can be added this way. The add method: https://github.com/koltyakov/gosip/blob/master/api/lists.go#L69

The second parameter is the optional settings, where BaseTemplate is responsible for what type of a list is created, the default is 100 which is a custom list. For a doc library, it should be 101.

koltyakov avatar Apr 01 '21 09:04 koltyakov