Views

Create, update, delete, and query the available lists in SharePoint.

Table Specific Information

Views is a special table. It may be used to get, update, insert, and delete views from a specified List.

Select

In order to return results from Views, either the Id or List must be specified in the SELECT statement. For example:


SELECT * FROM Views WHERE List='MyListName'

Insert

The List, Name, Type, and Fields columns are required to insert to this table.

Columns

Name Type ReadOnlyDescription
ID [KEY] StringTrue

The Id of the view.

List StringTrue

The list the view is associated with. A list must be specified when performing SELECT statements if the Id is not specified.

ViewID StringTrue

The Id of the view. May only be unique for the specific list.

Name StringFalse

The name of the view.

Type StringFalse

The type of view. This must have a value on inserts and updates.

The allowed values are CALENDAR, GRID, HTML.

The default value is HTML.

Fields StringFalse

A comma separated list of the fields associated with the view. This is space-sensitive.

IsDefault BooleanFalse

A boolean indicating if the view is the default view for the list.

Query StringFalse

A query for the view.