Skip to content

Add support to set document list view scope #874

@matsla

Description

@matsla

The Scope property is readonly for a document list view. I need to create a view with scope = Recursive.

// Get Documents list with views via title
var myList = await context.Web.Lists.GetByTitleAsync("Documents", p => p.Views);

// Get the view to update
var viewToUpdate = myList.Views.AsRequested().FirstOrDefault(p => p.Title == "All Documents");

// Update the view
viewToUpdate.Title = "All";
viewToUpdate.Scope = ViewScope:Recursive => Not supported (read only)
await viewToUpdate.UpdateAsync();

Metadata

Metadata

Assignees

Labels

area: framework ⚙Changes in the SDK core framework code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions