I have a list - Documents (Actually document library). I have given it two types of content types :- Document(default) & MyDocumentContentType (this is my custom content type)
Now Content Type Document have Title as Required field. And Content Type MyDocument have a custom col as required field - "MyRequiredField"
Now I want to fetch all the fields for list Documents, which have required property merged from all the content types.
Currently -> I get only Title as Required Field.
I want -> Title and MyRequiredField both as Required Fields.
I know I can fetch Fields for perticular content type by using ..../ContentTypes(ID)/Fields
.
But it will give me fields for that particular content type.
Currently I have only option is to iterate over all the content types associated with a list and fetch fields for each, and then merge required flag in code.
But it will take 4 ajax calls if I have 3 content types associated with the list.
MyRequiredField
site column or list column??