Last active
April 5, 2016 07:56
-
-
Save ryanjonhealy/c09a24f277c5f537b715edbb9539c749 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
function activateFeature(rawGuid){ | |
//get contextr of newly created site | |
var clientContext = new SP.ClientContext($site_url); | |
web = clientContext.get_web(); | |
//Activate Features | |
ActivateWebFeature(web); | |
function ActivateWebFeature(web){ | |
//trinedy branding feature GUID | |
var guid = new SP.Guid('{'+rawGuid+'}'); | |
var featDefinition = web.get_features().add(guid, true, SP.FeatureDefinitionScope.farm); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment