Table of contents
TOC
Collapse the table of content
Expand the table of content

Get-PnPField

Bert Jansen|Last Updated: 2/20/2017
|
1 Contributor

Returns a field from a list or site

Syntax

Get-PnPField [-List <ListPipeBind>]
             [-Web <WebPipeBind>]
             [-Includes <String[]>]
             [-Identity <FieldPipeBind>]

Returns

Microsoft.SharePoint.Client.Field

Parameters

ParameterTypeRequiredDescription
IdentityFieldPipeBindFalseThe field object or name to get
IncludesString[]FalseSpecify properties to include when retrieving objects from the server.
ListListPipeBindFalseThe list object or name where to get the field from
WebWebPipeBindFalseThe web to apply the command to. Omit this parameter to use the current web.

Examples

Example 1

PS:> Get-PnPField

Gets all the fields from the current site

Example 2

PS:> Get-PnPField -List "Demo list" -Identity "Speakers"

Gets the speakers field from the list Demo list

© 2017 Microsoft