Have you ever tried to migrate a site from an on-premises SharePoint environment to Office 365? Or have you tried keeping development, test and production sites in sync? Within an on-premises environment you would have been likely to hit issues with custom solution? Or you might have hit issues with recreating sites exactly the same… Continue reading Office 365 / SharePoint 2013/2016 – Moving sites around
Over the last year or so many of my posts have been related to the PnP Provisioning Engine. I've created multiple scripts to replicate my whole intranet from one tenant to another. I've set this all up in such a way that this would work for any intranet solution based on Office 365 or SharePoint… Continue reading Office 365 – SharePoint 2013/2016 – Replicating or migrating SharePoint sites.
Today I tried to load the Fields from a list using PnP PowerShell and CSOM. $ctx = Get-PnPContext $list = Get-PnPList -Web $web -Identity $listName $ctx.Load($list.Fields) $ctx.ExecuteQuery() This quite quickly resulted in : Exception calling "Load" with "1" argument(s): "The object is used in the context different from the one associated with the object."… Continue reading Office 365 – PnP PowerShell – The object is used in the context different from the one associated with the object
During one of my adventures into the world of PowerShell I came across the following error: Cannot process argument transformation on parameter 'Environment'. Cannot convert value "System.Xml.XmlElement" to type "System.Xml.XmlDocument". Error: "The specified node cannot be inserted as the valid child of this node, because the specified node is the wrong type." First I'll explain… Continue reading PowerShell – Cannot process argument transformation on parameter ‘VARName’. Cannot convert value “System.Xml.XmlElement” to type “System.Xml.XmlDocument”. Error: “The specified node cannot be inserted as the valid child of this node, because the specified node is the wrong type
Microsoft releases updates all the time. how do you know if two environments are the same? Today I'm trying to use PnP PowerShell to check the version of my SharePoint farm in Office 365. Two simple commands is all I need. First I connect to my tenant Connect-PnPOnline -Url https://tenant.sharepoint.com Then I get my context:… Continue reading Office 365 – Which version have I got?