But I Can’t Live Without SSOM!
Yesterday, we discussed that you should never use the Server Side Object Model.
Well, if you can’t use SSOM, what can you use?
Instead, use SharePoint’s Client Side Object Model – CSOM – and the REST APIs.
But what if you’re scripting with PowerShell? CSOM can be quite ungainly, even in C#. For DevOps folks, look at the Patterns and Practices (PnP) PowerShell cmdlets. With a familiar syntax, you can write scripts against SharePoint Server 2013, 2016 and SharePoint Online in a consistent way.
Also, the majority of the PnP cmdlets return CSOM objects.