This article will share with you the steps to create a simple SharePoint Hosted Add-in using Napa tool, with the help of PnP JavaScript Library in SharePoint Online, to access the data from Host web.

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

  • Host Web: A SharePoint site used to install the SharePoint Add-In.

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

To access data from Add-In web, refer to the link below:

Prerequisites

Getting start with SharePoint Add-In

The code in this example shows the Host Website’s Title and populates the lists (ID and Title) available on the web.

Output

Output

Conclusion

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