microsofttrends.com
How To Create a Publishing Page in SharePoint Online Using CSOM API - Microsoft Trends
I am working on some provisioning code for SharePoint Online, and I needed to create a publishing page. After some digging into the CSOM API, here is the code for adding a publishing page in SharePoint Online. using (ClientContext ctx = Login(parentURL)) { try { var web = ctx.Web; ctx.Load(web); PublishingWeb publishingWeb = PublishingWeb.GetPublishingWeb(ctx, …