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

Get-PnPView

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

Returns one or all views from a list

Syntax

Get-PnPView -List <ListPipeBind>
            [-Identity <ViewPipeBind>]
            [-Web <WebPipeBind>]
            [-Includes <String[]>]

Returns

Microsoft.SharePoint.Client.View

Parameters

ParameterTypeRequiredDescription
ListListPipeBindTrueThe ID or Url of the list.
IdentityViewPipeBindFalseThe ID or name of the view
IncludesString[]FalseSpecify properties to include when retrieving objects from the server.
WebWebPipeBindFalseThe web to apply the command to. Omit this parameter to use the current web.

Examples

Example 1

Get-PnPView -List "Demo List"

Returns all views associated from the specified list

Example 2

Get-PnPView -List "Demo List" -Identity "Demo View"

Returns the view called "Demo View" from the specified list

Example 3

Get-PnPView -List "Demo List" -Identity "5275148a-6c6c-43d8-999a-d2186989a661"

Returns the view with the specified ID from the specified list

© 2017 Microsoft