Created
April 21, 2017 15:14
-
-
Save luismanez/d227febf1e2777a40ff8ae8221ecb48a to your computer and use it in GitHub Desktop.
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
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