Joel's SharePoint Architect Blog

SharePoint 2010, MOSS & WSS Tips and Consultancy Tales

Subscribe Subscribe  View Joel Jeffery's profile on LinkedIn
joelblogs.co.uk | joelj.co.uk | joeljeffery.co.uk | jfdiphoenix.co.uk

I’m often asked for a list of the IDs of the most common Base Types, List Definitions and Content Types. Especially useful if you’re writing CAML definitions of Lists, List Instances, or Content Types. Here are the lists I’ve gleaned from MSDN.

Base Types

These Base Types come from the SPBaseType enumeration.

Base Type ID
Custom List0
Document Library1
Not used2
Obsolete. Use 0 for discussion boards.3
Surveys4
Issues List5

 

List Definitions

These List Definitions come from the SPListTemplateType enumeration.

Enumeration NameDescriptionID
InvalidTypeNot used -1
NoListTemplateunspecified list type 0
GenericListCustom list 100
DocumentLibraryDocument library 101
SurveySurvey 102
LinksLinks 103
AnnouncementsAnnouncements 104
ContactsContacts 105
EventsCalendar 106
TasksTasks 107
DiscussionBoardDiscussion board 108
PictureLibraryPicture library 109
DataSourcesData sources for a site 110
WebTemplateCatalogSite template gallery 111
UserInformationUser Information 112
WebPartCatalogWeb Part gallery 113
ListTemplateCatalogList Template gallery 114
XMLFormXML Form library 115
MasterPageCatalogMaster Page gallery 116
NoCodeWorkflowsNo Code Workflows 117
WorkflowProcessCustom Workflow Process 118
WebPageLibraryWiki Page Library 119
CustomGridCustom grid for a list 120
SolutionCatalogSolutions 121
NoCodePublicNo Code Public Workflow 122
ThemeCatalogThemes 123
DataConnectionLibraryData connection library for sharing information about external data connections 130
WorkflowHistoryWorkflow History 140
GanttTasksProject Tasks 150
MeetingsMeeting Series (Meeting) 200
AgendaAgenda (Meeting) 201
MeetingUserAttendees (Meeting) 202
DecisionDecisions (Meeting) 204
MeetingObjectiveObjectives (Meeting) 207
TextBoxText Box (Meeting) 210
ThingsToBringThings To Bring (Meeting) 211
HomePageLibraryWorkspace Pages (Meeting) 212
PostsPosts (Blog) 301
CommentsComments (Blog) 302
CategoriesCategories (Blog) 303
FacilityFacility 402
WhereaboutsWhereabouts 403
CallTrackCall Track 404
CirculationCirculation 405
TimecardTimecard 420
HolidaysHolidays 421
IMEDicIME (Input Method Editor) Dictionary 499
ExternalListExternal 600
IssueTrackingIssue tracking 1100
AdminTasksAdministrator Tasks 1200
HealthRulesHealth Rules 1220
HealthReportsHealth Reports 1221

 

Content Types

These content types come from the Content Type ID list.

Content TypeID
System0x
Item0×01
Document0×0101
Event0×0102
Issue0×0103
Announcement0×0104
Link0×0105
Contact0×0106
Message0×0107
Task0×0108
Workflow History0×0109
Post0×0110
Comment0×0111
East Asia Contact0×0116
Folder0×0120

Technorati Tags: SharePoint, SharePoint 2010, SharePoint Developer

 

You can leave a response, or trackback from your own site.

One Response to “SharePoint 2010 Base Types, List Template and Definition IDs, and Content Types IDs”

  1. Daniel says:

    Hi

    This is useful. Out of interest is it easy to derive the BaseType from the
    SPList instance as in myList.BaseTemplate.GetTypeCode. I want detect whether I am using a Task list type or sub type.

    Daniel

Leave a Reply