-
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. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 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)
{
} |
Beta Was this translation helpful? Give feedback.
-
Thanks, |
Beta Was this translation helpful? Give feedback.
@web265p3 : you need to load the views when you call
GetByTitle