In this article you will learn how to deploy Site Columns, Content Type and List to SharePoint using SharePoint Hosted Add-in.
SharePoint hosted apps can be used to deploy Lists, workflows, site columns, content types, custom pages and other SharePoint artifacts. SharePoint Hosted App is now renamed as SharePoint Hosted Add-in. In this article we will see how to,
Let’s get started with the SharePoint hosted app creation with Visual Studio,
Add Content Type
Add a List
All the columns present in the content type will be added to the list. Now the site columns and Content types have been created. We have also provisioned a list based on the site column and content type. Let’s deploy the Share Point hosted add-in by clicking on Deploy. It will ask you whether to trust the app. Select Trust It. The Share Point Hosted Add-in is now available in the site. You can add the data to the list by populating the site columns with data.
SharePoint Framework (SPFx) A Developers Guide