R – Create wiki pages on SharePoint with web services

sharepointsoapwikiwindows

With which methods do I create wiki content on SharePoint, using the provided web services?

I've searched the MSDN docs up and down – with no result.

Best Answer

You create any list in SharePoint using the List.asmx web service.

That service has a method named AddList which takes 3 parameters:

  1. Name - This is what your new list will be named.
  2. Description - The description of your new list.
  3. Template ID - This is an int that specifies the type of list to create.

In the case of a wiki - you will use Template ID 119.

The documentation only partially lists these template ID's. A better list used to be here (now a 404) and is now accessible through the Internet Archive here.

NOTE: Use the URL property of the List web service to specify where the new list should be created.