Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 1.15 KB

GetPnPView.md

File metadata and controls

40 lines (34 loc) · 1.15 KB

#Get-PnPView 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

Parameter Type Required Description
List ListPipeBind True The ID or Url of the list.
Identity ViewPipeBind False The ID or name of the view
Includes String[] False Specify properties to include when retrieving objects from the server.
Web WebPipeBind False The 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