List Template ID for SharePoint Lists

Many SharePoint elements are using ListTemplateID to identify the list they are refearing to. For example event receivers CAML looks like this <Receivers ListTemplateId="100">, custom actions uses RegistrationId, etc.

For reference you can find the list of ListTemplateID in the table bellow

List template nameListTemplateID
NoListTemplate0
GenericList100
DocumentLibrary101
Survey102
Links103
Announcements104
Contacts105
Events106
Tasks107
DiscussionBoard108
PictureLibrary109
DataSources110
WebTemplateCatalog111
UserInformation112
WebPartCatalog113
ListTemplateCatalog114
XMLForm115
MasterPageCatalog116
NoCodeWorkflows117
WorkflowProcess118
WebPageLibrary119
CustomGrid120
SolutionCatalog121
NoCodePublic122
ThemeCatalog123
DataConnectionLibrary130
WorkflowHistory140
GanttTasks150
Meetings200
Agenda201
MeetingUser202
Decision204
MeetingObjective207
TextBox210
ThingsToBring211
HomePageLibrary212
Posts301
Comments302
Categories303
Facility402
Whereabouts403
CallTrack404
Circulation405
Timecard420
Holidays421
IMEDic499
ExternalList600
IssueTracking1100
AdminTasks1200
HealthRules1220
HealthReports1221
InvalidType-1

ListTemplateID can be accessed programmatically like this:

string[] listTemplateNames = Enum.GetNames(typeof(SPListTemplateType));
Array listTemplateId = System.Enum.GetValues(typeof(SPListTemplateType));

for (int i = 0; i < listTemplateId.Length; i++)
{
    Debug.WriteLine(string.Format("ListTemplate name: {0}, ListTemplateId: {1}",
        listTemplateNames[i], (int)listTemplateId.GetValue(i)));
}
Tags: , , .

3 Responses to List Template ID for SharePoint Lists

  1. Pingback: Changing Thumbnail Size for SharePoint Picture Libraries | SharePoint Snippets

  2. Pingback: Master pages in SharePoint 2010 | SharePoint Snippets

  3. subha says:

    i ahve aproblem with the list id..
    i have created a aplication where the list id ill be the unique number.
    the application raises the tickets where in the ticket num is the id i used.
    the error i am finding is that. when 2 different users are submitting the tickets at a time the item is getting mismatched i.e ones ticket is gong and falling under another user.
    why is this happening..
    please help me out in solving this.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>