-
Notifications
You must be signed in to change notification settings - Fork 217
Closed
Labels
area: framework ⚙Changes in the SDK core framework codeChanges in the SDK core framework code
Description
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 codeChanges in the SDK core framework code