pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
985 stars 665 forks source link

[BUG] Get-PnP Field does not return correct Title value #2961

Closed leandrolerena closed 3 years ago

leandrolerena commented 3 years ago

Expected behavior

Please describe what output you expect to see from PnP-PowerShell Cmdlets

$field = Get-PnPField -Identity $InternalName
$field.Title # should return the actual Title, not the StaticName/InternalName!

On SharePoint Online: German Tenant, English activated

Actual behavior

$field.Title returns the StaticName/InternalName!

Steps to reproduce behavior

See code above

Which version of the PnP-PowerShell Cmdlets are you using?

PnP PowerShell for SharePoint Online

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

3.24.20

How did you install the PnP-PowerShell Cmdlets?

Installed through the PowerShell Gallery with Install-Module

ToddKlindt commented 3 years ago

I was unable to reproduce this: image There's a newer version of the module, 3.26.2010.0. Can you upgrade to that and see if you still have the problem? Update-Module SharePointPnPPowerShellOnline -Force If so, can you post an image like mine that shows what steps you took before what you posted?

leandrolerena commented 3 years ago

Only solution was updating the Module did fix the problem... Strange

Thank you @ToddKlindt for your fast help. Very appreciated!


For reproduction, the only step missing was:

Connect-PnPOnline <URL> -UseWebLogin

Leading to

Connect-PnPOnline <URL> -UseWebLogin
$field = Get-PnPField -Identity $InternalName
$field.Title