How to add Webpart in a Page in Office 365 using CSOM ?
In this article, we will talk bout the site provisioning technique which is followed in Office 365 app model. you can add web part to SharePoint page using CSOM code. Below is the sample piece of code to achieve the same. var context = new SP.ClientContext(webUrl); var web = context.get_web(); var page= web.getFileByServerRelativeUrl(webUrl + pageUrl); […]