Skip to content

[BUG]Get-PnpProperty error referring to Microsoft.SharePoint.Client.ClientObject #360

@sathya-bhat

Description

@sathya-bhat

Notice

I am trying out 1,PnP.PowerShell and 'Get-PnPProperty' fails for all the new PnP objects. Is this work in progress or this cmdlet will be deprecated?

Expected behavior

Return the property or document that this is not supported.

Actual behavior

Get-PnPProperty: Cannot bind parameter 'ClientObject'. Cannot convert the "PnP.PowerShell.Commands.Model.SPOSite" value of type "PnP.PowerShell.Commands.Model.SPOSite" to type "Microsoft.SharePoint.Client.ClientObject".

Steps to reproduce behavior

$cui = Connect-PnpOnline -url 'https://x.sharepoint.com/sites/test' -ClientId 'xyz' -ClientSecret 'abc' -ReturnConnection
$ten = Get-PnPTenantSite -Connection $cui -Url 'https://x.sharepoint.com/sites/test'
Get-PnpProperty -Connection $cui -ClientObject $ten -Property 'Template'

What is the version of the Cmdlet module you are running?

1.3.14-nightly

Which operating system/environment are you running PnP PowerShell on?

  • [ x] Windows
  • [ x] Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions