1.

What are the two types of SharePoint Add-ins in the context of Microsoft SharePoint? Differentiate between them.

Answer»

Following are the different types of SharePoint Add-ins :

  • SharePoint hosted add-ins:
    In an add-in web, SharePoint-hosted add-ins are virtually exclusively made up of SharePoint components. They're believed to have their HEART in SharePoint at times. A user can execute a SharePoint-hosted add-in from a tile on the Site Contents page of the SharePoint website where it's installed, just like any other SharePoint Add-in. Add-in parts and custom actions are two further types of UI components that can be included in the host site (that is, custom ribbon buttons or menu items). The add-in web is where everything else in a SharePoint-hosted add-in is deployed. A SharePoint-hosted add-in's business logic is written in JavaScript, either directly on a custom page or in a JavaScript file linked from a custom page. A JavaScript version of the SharePoint object model (JSOM) is supplied to make CRUD (create, read, update, and delete) actions on SharePoint data simple for the add-in.
  • Provider hosted add-ins:
    A provider-hosted add-in can contain any SharePoint component that can be found in a SharePoint-hosted add-in. However, provider-hosted add-ins differ from SharePoint-hosted add-ins in that they involve at least one remote component that is hosted outside of the SharePoint farm or SharePoint Online subscription, such as a web application, service, or DATABASE. This could be a server on the same corporate NETWORK as a SharePoint farm or a cloud service. Any web hosting stack, including the Linux, Apache, MySQL, and PHP (LAMP) stack, can host the external components. Whoever OWNS the server or cloud account is the "provider." The SharePoint farm or SharePoint Online tenancy where the add-in is to be installed can be owned by the same firm or organization. However, the add-creator in's can also be the provider.

Following are the differences between SharePoint hosted add-ins and Provider hosted add-ins:

SharePoint hosted add-insProvider hosted add-ins 
In SharePoint hosted add-ins, the business logic is javascript on custom SharePoint pages.In Provider hosted add-ins, the business logic is mainly remote server-side code.
It is centered AROUND SharePoint components including lists, pages, web parts, workflows, libraries and more.It is centered around a remote web application or data source.
In SharePoint hosted add-ins, there is no server-side code.Provider hosted add-ins can include SharePoint components.


Discussion

No Comment Found