How to Create a Content Type in SharePoint 2013/Office 365 programmatically using CSOM?
In Office 365 environment, you have to provision everything through CSOM. Content type is basic building blocks of any SharePoint List and Libraries. Here is the CSOM Code snippet to create a new Content type and Its ID. ContentTypeCollection contentTypes = web.ContentTypes; cc.Load(contentTypes); cc.ExecuteQuery(); foreach (var item in contentTypes) { if (item.StringId == “0x0101009189AB5D3D2647B580F011XA2F359FB3”) return; […]