Question

I'm trying to get the list fields shared by all the content types in said List. After getting the List by its Title, I used the Fields property to get all the fields in the List:

List list = clientContext.Web.Lists.GetByTitle('list Title');
clientContext.Load(list);
FieldCollection listFields = list.Fields;
clientContext.Load(listFields);

The problem is I only want the ones shared by all content types in the list. Is there a way to get them without having to go through all the content types and their respective Fields and comparing them to get the one in common?

Was it helpful?

Solution

As far as I know, you can't tell which Content Type it is from Field object

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top