How to create folder in sharepoint site using c# net with Rest service call(without using sharepoint client) in server side?
Thanks
Karthi
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Pravin MoreRank #1,419 · 1.2K reputationPosted Oct 19, 2016, 5:16 AM EDT
{
using (SPWeb web = site.OpenWeb())
{
SPList list = web.Lists.TryGetList("Custom");
SPListItem folderColl = list.Items.Add(list.RootFolder.ServerRelativeUrl,SPFileSystemObjectType.Folder);
folderColl["Title"] ="New Folder";
folderColl.Update();
list.Update();
}
}
karthi A6 reputationPosted Oct 20, 2016, 11:36 PM EDT
Manpreet SinghRank #15 · 50.7K reputationPosted Feb 21, 2017, 9:12 AM EST