Skip to content

Create Folder item with CSOM

With this code snippet you are able to create a Folder in a SharePoint list (or library) with the usage of CSOM.

var info = new ListItemCreationInformation
{
    UnderlyingObjectType = FileSystemObjectType.Folder,
    LeafName = folderName
};
var newItem = list.AddItem(info);
newItem["Title"] = "Your folder name";
ClientContext.ExecuteQuery();

Leave a Reply

Your email address will not be published. Required fields are marked *

By transmitting your comment you agree to our mentioned privacy policy content.

17 + three =