I have some code to get the fields of a List with some Criteria.
Web web = context.Web; List list = web.Lists.GetByTitle("Employees"); FieldCollection fieldCol = list.Fields; context.Load(fieldCol, fields => fields.Where(field => field.Title == "Emp id").Include(field => field.Title, field => field.SchemaXml)); context.ExecuteQuery();
How to apply CAML Query of FieldCollection object like above? I need it because, in my case the 'Where' criteria is dynamic (I will compare
field.Title with many names). Or other than CAML query, is there any other way that could meet my requirment?