Skip to content

[BUG] -Includes param behavior in Get-PnPField has regressed #3220

@benleolander

Description

@benleolander

Reporting an Issue or Missing Feature

Get-PnPField produces an error when used with the -Includes parameter in version 2.1.1. This appears to be a regression from previous versions; same reproductions steps below work as expected in (EG) version 1.12.0

Expected behavior

Get-PnPField returns the expected field.

Actual behavior

Error produced:
Get-PnPField: The property or field 'FieldTypeKind' has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.

Steps to reproduce behavior

Import PnP.Powershell @ 2.1.1 and connect to a site.

Get-PnPField -List "Documents" -Identity "Title"
Returns the expected field

Get-PnPField -List "Documents" -Identity "Title" -Includes Title
Produces the above error.

image

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

2.1.1
Issue still present in 2.1.86-nightly

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

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

Metadata

Metadata

Assignees

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