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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Manpreet SinghPosted Feb 21, 2017, 2:12 PM
karthi APosted Oct 21, 2016, 3:36 AM
Pravin MorePosted Oct 19, 2016, 9:16 AM
{
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();
}
}