Add-SPOListView

Synopsis

Adds a new view to a list

Syntax

Add-SPOListView -List <List> -Title <String> -Fields <String> -RowLimit <UInt32> [-Type <String>] [-Query <String>] [-Paged] [-Personal] [-Default] [<CommonParameters>]

Description

Parameters

-List <List>

The list to which the new view should be added.

Required? True
Position? named
Default value  
Accept pipeline input? true (ByValue)
Accept wildcard characters? False

-Title <String>

Title for list view

Required? True
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Fields <String>

Fields to display. Comma delimited list of field's static names.

Required? True
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-RowLimit <UInt32>

Number of results to return in one page.

Required? True
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Type <String>

Type of view. Can be Calendar,Chart,Gantt,Grid,None,Recurrence or Html (default)

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Query <String>

The caml query used to return data.

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Paged <SwitchParameter>

Should the view be paged

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Personal <SwitchParameter>

Should the view be personal

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Default <SwitchParameter>

Should this view be the default view.

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

Inputs

Outputs

Notes

Examples

Add new listview to list

PS C:\> Add-SPOListView -List $list -Title "My Custom View" -Fields Title,Body,Metadata_Field -RowLimit 30

Related links

Last edited Aug 5, 2014 at 12:07 AM by provokesolutions, version 2

Comments

No comments yet.