I am adding a column in custom view. Working fine, but while checking if this column exist in the view
getting unusual issue. There is no error but simply this code is not working. Debugger is not going inside if statement always going else and adding one more version column.
customtview = subjectSiteDocumentsLibrary.GetViewByName("All Documents");
subjectSiteContext.Load(customtview, v => v.ViewFields);
Have you tried this solution:
Thanks Pieter , it is working through internal names.