This article will share with you the steps of creating a simple SharePoint Hosted add-in using Napa tool, with the help of PnP JavaScript Library in SharePoint online.

SharePoint Add-In is an independent component used to include a new or expanded functionality to SharePoint. The SharePoint Add-In that can access the data and use the components between two webs, is called Host web and Add-In web.

  • Host Web
    A SharePoint site used to install the SharePoint Add-In is called Host web.

  • Add-In Web
    A special child web site is created during the installation of Add-In. All the components mentioned in the Add-In are deployed to this child website. This web is called Add-In web.
The following example uses a PnP JavaScript Library to access the Lists available in the Add-In web and shows the Add-In web title from the SharePoint Online.

Prerequisites

Getting started with SharePoint Add-In

The code in the example shows the current website title and populates the lists (ID and Title) available in the web. You can also check this article from my blog by clicking here.

Output

Output

Conclusion

From this article, we learned how to create a SharePoint Add-in to access the information from Add-In web, using PnP JavaScript Library.