I've got an external application which performs web service calls to SharePoint API. I need to create two functionalities:
Create Document Libraries with e.g. foo, bar and baz as required data (columns). The data should be passed via the web service without any manual work from the user.
Create Folders inside said Document Libraries with foo and bar as required columns which are automatically populated. Also the order of the columns should be set in the web service call.
I've got a working solution which generates a Document Library with only foo and bar but not baz. How can I add an additional custom column for the baz and populate its value via the web service call. And the same question for the Folder structure. I cannot find a reasonable solution to create dynamically custom columns and place data in them.
Thanks in advance.