AddPage
Creates a new page in the specified SharePoint page library. By default, the new page is empty and unpublished.
Stored Procedure-Specific Information
Examples:EXEC AddPage Title = 'My New Page'; EXEC AddPage PageLibrary = 'Page Library', Title = 'Welcome Page', Template = '1';
Input
| Name | Type | Required | Description |
| PageLibrary | String | False | The title of the SharePoint document library where the new page is created.
The default value is Site Pages. |
| Title | String | True | The name or title of the new page to create. This is used as the file name (for example, PageTitle.aspx). |
| Template | String | False | The type of template to use when creating the page. The allowed values include 0 (StandardPage), 1 (WikiPage), and 2 (FormPage).
The allowed values are 0, 1, 2. The default value is 0. |
Result Set Columns
| Name | Type | Description |
| Success | Boolean | Indicates whether the page creation operation was successful. Returns 'true' if the page was created successfully. |
| RelativeUrl | String | The server-relative URL of the newly created SharePoint page (for example, /sites/demo/SitePages/PageTitle.aspx). |