0

When using Get-PnPField, is there a way to only pull fields that are available for editing the settings GUI?

Get-PnPField pulls all the fields including some system-related.

0

You are right by default Get-PnPField returns all fields from a list or site.

You can filter the results you are getting from this comment like below:

Exclude Hidden Fields:

Get-PnPField | ? { $_.Hidden -eq $false}

Exclude Read Only Fields:

Get-PnPField | ? { $_.ReadOnlyField -eq $false}

Exclude Hidden AND Read Only Fields:

Get-PnPField | ? { $_.Hidden -eq $false -AND $_.ReadOnlyField -eq $false}

References:

  1. Get-PnPField
  2. Logical Operators in PowerShell
| improve this answer | |
  • 1
    Thank you Ganesh, this help – srg Oct 28 '19 at 14:49
0
Get-PnPField | ? { $_.Hidden -eq $false}
| improve this answer | |
  • Thank you Derek, this helps – srg Oct 28 '19 at 14:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.