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?

2

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

  • 1
    Cheers mate :) the server-side API has the same call (as would be expected) SPWeb.LoadAndInstallApp – Martin Hatch Feb 14 '14 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 '14 at 19:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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