Repository navigation
|
I tried already several ways how to do this, but it seems not to be possible to iterate all view fields of a view. My current approach would be something like this: But QueryProperties does not exist on ViewFields here... is there anything I have overseen to archive my wish? I am using version 1.10.0 - the last stable build. |
Answered by
jansenbe
Sep 1, 2023
Replies: 2 comments 3 replies
|
@web265p3 : This works for me: var list = await context.Web.Lists.GetByTitleAsync("Documents", p => p.Title, p => p.ListExperience, p => p.Views.QueryProperties(p => p.ViewFields));
var view = list.Views.AsRequested().FirstOrDefault();
foreach (var field in view.ViewFields.Items)
{
} |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

@web265p3 : you need to load the views when you call
GetByTitle