Please follow the below steps to create the SharePoint hosted add-in on SharePoint online. Prerequisites: You must have an Office 365 account (either trial or paid).
- Create solution using Visual Studio
- Create app catalog site in SharePoint Online
- Deploy the solution in the app catalog site.
Create a solution using Visual Studio.
Open the Visual Studio as the administrator account and create a new project using SharePoint Add-in template.
Open the Visual Studio as the administrator account and create a new project using SharePoint Add-in template.

Enter the site collection URL and select SharePoint-hosted.

Click Next and select the SharePoint Online option which will redirect it and prompt for credentials.

Provide the correct credentials and click onthe finish button and it will create the layouts for add-ins.

Now right click on solution select Add-> New Item and select List and name it AddinList.

Click Add button and select the custom list and add a couple of columns of your choice in it.

Once the list is created it is added to the solution.

The AddinList has an instance object which contains the information that can be added to the list by default.








Piyush AgarwalPosted Mar 6, 2018, 12:01 PM
Exactly what i wanted....