Forum Discussion

Pasi Bergman's avatar
Pasi Bergman
Copper Contributor
Nov 01, 2016
Solved

Home.aspx content and webparts when extracting PnP site provisioning schema?

Should I be able to get the page content of the site welcome page (e.g. /SitePages/Home.aspx) and its webparts using Get-SPOProvisioningTemplate (PowerShell) or GetProvisioningTemplate (C#)? I would ...
  • Erwin van Hunen's avatar
    Erwin van Hunen
    Jan 14, 2017

    A little update from the PnP Core Team: I just changed the behaviour of the PageContents handler (which is the handler that extracts the homepage). It was checking for the presence of Credentials on the ClientContext and if not present it would not execute the extraction of artifacts. That check is still valid for On-Premises, due to the fact that we have to call a webservice to work around CSOM limitations, but is not needed anymore for SPO as that version of CSOM allows us to export all webparts. I now made that check conditional based upon the version of the NuGet package you're running, and it will be available in version 2.12.1702.0 (the February 2017 release).

Resources