Forum Discussion
Rahul Suryawanshi
Nov 28, 2018Brass Contributor
Adding Client Side Web Part with SharePoint CSOM on Modern page
I know there is PnP Core CSOM or PnP PowerShell cmdlet to add client side web part on particular modern page but trying to know if there are any Microsoft CSOM APIs as part of Microsoft.SharePointOnline.CSOM nuget package which can provide way to perform all CRUD operation on modern page as well as client side web part (SPFx web part).
Thanks in advance.
- BertJansenMicrosoft
Hi,
There are no official CSOM API's for manipulating client side pages but we're working on a graph API for creating/updating modern pages. This API however has not yet been released. As an alternative, you can use .Net API in PnP Sites Core when you use C# code. That same API is also wrapped into a series of PnP PowerShell cmflets in case you prefer PowerShell
- Rahul SuryawanshiBrass ContributorThanks Bert for your quick response. I was able to do this with PnP Sites Core and was just wondering if there are Official CSOM APIs. Currently we don't have dependency on PnP Site Core packages in our implementation and wanted to see if we can continue that.
Thanks again!