Office 365 – PnP PowerShell – The object is used in the context different from the one associated with the object

Get Field names from a list Today I tried to load the Fields from a list using PnP PowerShell and CSOM. 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." At line:1 char:1 + $web.Context.Load($list.Fields) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ … Continue reading Office 365 – PnP PowerShell – The object is used in the context different from the one associated with the object

Advertisements

SharePoint Online PnP – The object is used in the context different from the one associated with the object.

Today  one of my colleagues was trying to create a list item in SharePoint Online using the PnP PowerShell. Adding an item to a list He was running the following command and got the following error: <h3>The -web switch</h3> I noticed that the -web switch was missing So what happened? When -Web is missing in … Continue reading SharePoint Online PnP – The object is used in the context different from the one associated with the object.