NewList Method
Applies to: SharePoint Foundation 2010
Creates a SharePoint list of a specified type, such as Discussions, Contacts, or Survey.
Note
This method is deprecated and may not be supported in future releases. Instead, use the following Web service method:AddList(String, String, Int32) Web service method.
<Method ID="Text">
<SetVar Name="Cmd">NewList</SetVar>
<SetVar Name="ListTemplate">List_Type</SetVar>
<SetVar Name="Title">Text</SetVar>
<SetVar Name="Description">Text</SetVar>
<SetVar Name="displayOnLeft">[TRUE|FALSE]</SetVar>
<SetVar Name="VersioningEnabled">[TRUE|FALSE]</SetVar>
<SetVar Name="GlobalMtgDataList">[TRUE|FALSE]</SetVar>
<SetVar Name="AllowMultiVote">[on|off]</SetVar>
<SetVar Name="showUsernames">[on|off]</SetVar>
</Method>
Parameters
Parameter |
Description |
---|---|
ID = "Text" |
Application-specific string. In an HTML editor compatible with Microsoft Windows SharePoint Services, such as Microsoft Office SharePoint Designer 2007, the string provides the sequence number and name of the method. |
Name = "Cmd" |
Must be set to NewList. |
Name = "ListTemplate" |
Identifies the list type, using the following values.
|
Name = "Title" |
Specifies a title for the list. |
Name = "Description" |
Specifies a description for the list. |
Name = "displayOnLeft " |
Optional. TRUE to display the list on the Quick Launch bar. |
Name = "VersioningEnabled" |
Optional. TRUE to enable versioning for a document library. |
Name = "GlobalMtgDataList" |
Optional. For a list in a Meeting Workspace site, TRUE to specify that the list is a series list or FALSE to specify a normal list. |
Name = "AllowMultiVote" |
Optional on or off. on allows users to vote more than once in a survey. |
Name = "showUsernames" |
Optional on or off. on specifies that the user name is displayed in the results of a survey. |
Decoded
<Method ID="0,NewList">
<SetVar Name="Cmd">NewList</SetVar>
<SetVar Name="ListTemplate">100</SetVar>
<SetVar Name="Title">New List 999</SetVar>
</Method>