How can I get default content type of sharepoint list programmatically?
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
This should get you the first content type which is the default one. |
||||
|
|
|
You can run the following to determine the content type ordering (first is default).
The defaultContentType variable will then contain the default content type object. |
|||
|
|