Creating Apps With List Using Visual Studio In SharePoint 2013 Online

Updated: Jan 30, 2020


Introduction

In this article I am going to demonstrate how we can create an App with Announcement list. Creating Apps is simple in SharePoint, this article is mainly targeted for freshers to SharePoint 2013.

Steps to Create App


1. Run Visual studio as administrator and create new SharePoint 2013 App.



2. Provide a web URL in which you are going to deploy this App and select option SharePoint-hosted option.


3. Add SharePoint list (name as Announcements) to that project,


4. Select Announcements list template to create this list.


5. Add new announcements to the list, add below data rows in ‘Announcement’ List Element file. This will add the events.

  1. <?xml version="1.0" encoding="utf-8"?>  

  2. <Elements xmlns="http://schemas.microsoft.com/sharepoint/">    

  3. <ListInstance Title="Announcements"                 

  4. OnQuickLaunch="TRUE"                 

  5. TemplateType="10000"                 

  6. Url="Lists/Announcements"                 

  7. Description="My List Instance">      

  8. <Data>        

  9. <Rows>          

  10. <Row>            

  11. <Field Name="Title">RK Announcement 1</Field>          

  12. </Row>          

  13. <Row>