Skip to content

Instantly share code, notes, and snippets.

@luismanez
Created April 21, 2017 15:14
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 luismanez/d227febf1e2777a40ff8ae8221ecb48a to your computer and use it in GitHub Desktop.
Save luismanez/d227febf1e2777a40ff8ae8221ecb48a to your computer and use it in GitHub Desktop.
using (ClientContext context = PnPPartnerPackContextProvider.GetAppOnlyClientContext(parentSiteUrl))
Web parentWeb = context.Web;
Web web = parentWeb.Webs.Add(newWeb);
web.ApplyProvisioningTemplate(template, ptai);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment