Created
April 21, 2017 15:15
-
-
Save luismanez/3a04132f2ef201b4b34da1a57caeb8e4 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
Web web = parentWeb.Webs.Add(newWeb); | |
context.ExecuteQueryRetry(); | |
Podemos añadir el siguiente snippet: | |
if (template.ExtensibilityHandlers.Any()) | |
{ | |
// Clone Context pointing to Sub Site (needed for calling custom Extensibility Providers from the pnp template passing the right ClientContext) | |
string newWeburl = web.EnsureProperty(w => w.Url); | |
ClientContext webClientContext = context.Clone(newWeburl); | |
web = webClientContext.Web; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment