How to create your own document libraries and folders using the SharePoint API

I have an external application that makes web service calls in the SharePoint API. I need to create two functions:

  • Creating document libraries, for example. foo, bar and baz as required data (columns). Data must be transmitted through a web service without any manual work from the user.

  • Create folders inside the specified document libraries using foo and bar as the necessary columns that are automatically populated. Also, the column order must be set in the web service call.

I have a working solution that only creates a document library with foo and bar, but not with baz. How to add an additional custom column for baz and populate its value with a web service call. And the same question for the folder structure. I can’t find a reasonable solution for creating dynamically customizable columns and placing data in them.

Thanks in advance.

+3
source share
1 answer

One way to do this is to create a new doc library using foo, bar and baz, copy all the content, and then rename the old one to "OBSOLETE" and then rename the new one to the original name.

0
source

Source: https://habr.com/ru/post/1775208/


All Articles