Skip to content

Instantly share code, notes, and snippets.

@AsishP
Last active February 27, 2019 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AsishP/15b359b0d137432e3238cda24c3edae4 to your computer and use it in GitHub Desktop.
Save AsishP/15b359b0d137432e3238cda24c3edae4 to your computer and use it in GitHub Desktop.
Add Single Web Part App Page
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