AddPage
Creates a new page in the specified SharePoint page library.
Stored Procedure Specific Information
The created page will be empty and unpublished by default.
Examples
EXECUTE AddPage Title = 'My New Page'; EXECUTE 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 will be created. Common default is 'Site Pages'.
The default value is Site Pages. |
| Title | String | True | The name or title of the new page to create. This will be used as the file name (for example, PageTitle.aspx). |
| Template | String | False | The type of template to use when creating the page. Values: 0 = StandardPage, 1 = WikiPage, 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). |