Quantcast
Channel: Microsoft Online: SharePoint Online forum
Viewing all articles
Browse latest Browse all 10096

Activate app feature via CSOM

$
0
0

Hi, is it in any way possible to activate a custom feature, that is deployed via an app using CSOM in o365? There is no problem in deactivating it using CSOM. 

The feature is web scoped, i have tried all combinations of web/site and scopes

var features = ctx.Web.Features;
features.Context.Load(features);
features.Context.ExecuteQueryRetry();
features.Add(.., true, FeatureDefinitionScope.Farm);
features.Context.ExecuteQueryRetry();
The exception is "Feature {GUID} is not installed in this farm and cannot be added to this scope"


Viewing all articles
Browse latest Browse all 10096

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>