1

I am currently working on a large deployment consisting of a large number of Site Collections with some custom SharePoint Apps (specifically custom ASP.Net High-Trust Provider Hosted Apps, but that shouldn't matter).

The site collections are all being provisioned from custom site definitions, so we have complete control over the provisioning process (be it adding features, modifying the onet.xml or even adding a managed code provisioning-provider if needed).

Does anyone know how to add an App Instance to a site programmatically and/or declaratively?

1 Answer 1

2

There is the CSOM method LoadAndInstallApp which might help. Available via JavaScript and .NET.

2
  • 1
    Cheers mate :) the server-side API has the same call (as would be expected) SPWeb.LoadAndInstallApp Feb 14, 2014 at 17:16
  • I found the server side call a few days ago actually, and for some really odd reason I thought you were after a client side variant.
    – James Love
    Feb 14, 2014 at 19:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.