Search code examples
sandboxoffice365

Activate sandbox solution in Sharepoint office 365


Well I have tried this so far.

ClientOM.List list = clientContext.Site.GetCatalog((int)ClientOM.ListTemplateType.SolutionCatalog);
        clientContext.Load(list);
        clientContext.ExecuteQuery();

        ClientOM.ListItemCollection listItemColls = list.GetItems(new ClientOM.CamlQuery());
        clientContext.Load(listItemColls, listItem => listItem.Include(item => item.DisplayName, item => item["Status"]).Where(i => i.DisplayName == "Tzunami Office 365 Sandbox Package"));
        clientContext.ExecuteQuery();

Then i read status of sand box solution. It gives status of sandbox solution i.e listItemColls[0]["Status"] is equal to null when wsp file is not activated..

I want to activate that solution if it is not activated. How can i do it??


Solution

  • I did it other way.I track the request send to activate the sand box through fiddler. Just replicate same process through code