NewWebPage Method
Creates a new Web Part Page or a new basic page in the specified document library.
Syntax
<Method ID="Text">
<SetList Scope="Request">GUID</SetList>
<SetVar Name="Cmd">NewWebPage</SetVar>
<SetVar Name="ID">New</SetVar>
<SetVar Name="Type">[WebPartPage|BasicPage]</SetVar>
<SetVar Name="WebPartPageTemplate">[1-8]</SetVar>
<SetVar Name="Overwrite">[true|false]</SetVar>
<SetVar Name="Title">Text</SetVar>
</Method>
Parameters
ID = "Text"
Scope = "Request"
Name = "Cmd"
Name = "ID"
Name = "Type"
Name = "WebPartPageTemplate"
Name = "Overwrite"
Name = "Title"
Decoded
<Method ID="0,NewWebPage">
<SetList Scope="Request">6beeefcd-866d-4fc7-94b9-94e6297386bc</SetList>
<SetVar Name="Cmd">NewWebPage</SetVar>
<SetVar Name="ID">New</SetVar>
<SetVar Name="Type">WebPartPage</SetVar>
<SetVar Name="WebPartPageTemplate">3</SetVar>
<SetVar Name="Overwrite">true</SetVar>
<SetVar Name="Title">Text</SetVar>
</Method>
Return Value
Success
Returns the code attribute, which is a signed-decimal representation of an HRESULT, such as: <Result ID="0,NewWebPage" Code="0" />
.
Error
Returns an XML-encoded Unicode (UTF-8) text string. For more information, see Error Message Format for Windows SharePoint Services.