Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Create A Task List In SharePoint 2013 Using CSOM
WhatsApp
Gowtham Rajamanickam
8y
9.8
k
0
0
25
Blog
Steps
Open Visual Studio in your system.
Select Console Application template and give the name "Enablefolder".
Add a Microsoft.Cleint Assembly reference file in right side reference tab in Visual Studio.
Replace Program.cs with the source code given below.
Code snippet
using
System;
using
Microsoft.SharePoint.Client;
namespace
GowthamArticles
{
class
CreateList
{
static
void
Main()
{
ClientContext clientContext =
new
ClientContext(
"https://gowtham.sharepoint.com/tutorials"
);
ListCreationInformation creationInfo =
new
ListCreationInformation();
creationInfo.Title =
"New TASKList"
;
creationInfo.Description =
"THis Task List created PRogrammatically"
;
creationInfo.TemplateType = (
int
)ListTemplateType.Tasks;
web.Lists.Add(creationInfo);
context.ExecuteQuery();
}
}
}
csom
SharePoint
Up Next
SharePoint 2013: Create List Item Programmatically using CSOM
Ebook Download
View all
SharePoint Framework (SPFx) A Developers Guide
Read by 11.1k people
Download Now!
Learn
View all
Membership not found