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.

2 Answers 2

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
1
  • 1
    Thank you Ganesh, this help
    – srg
    Commented Oct 28, 2019 at 14:49
0
Get-PnPField | ? { $_.Hidden -eq $false}
1
  • Thank you Derek, this helps
    – srg
    Commented Oct 28, 2019 at 14:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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