Last active
February 27, 2019 09:08
-
-
Save AsishP/15b359b0d137432e3238cda24c3edae4 to your computer and use it in GitHub Desktop.
Add Single Web Part App Page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Connect-PnPOnline -Url "https://sharepoint.com" | |
## Add Page using PnP PowerShell | |
$page = Add-PnPClientSidePage -Name "TestAppPart.aspx" -LayoutType SingleWebPartAppPage | |
## Add a section the Page | |
Add-PnPClientSidePageSection -Page $page -SectionTemplate OneColumnFullWidth | |
## Add a Client Side Web Part | |
Add-PnPClientSideWebPart -Page $page -DefaultWebPartType SiteActivity -Section 0 -Column 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment