Recently, I was helping a client migrate some SharePoint lists from one environment to another, and we needed to programmatically create new lists based on existing templates. The critical piece of information we needed was the SharePoint List Template ID. The issue is… finding and using these IDs isn’t always easy. In this article, I’ll walk you through everything you need to know about SharePoint List Template IDs, including where to find them and how to use them in your SharePoint projects.
What is a SharePoint List Template ID?
A SharePoint List Template ID is a unique numerical identifier that represents a specific type of list template in SharePoint. These IDs are essential when you’re programmatically creating lists, customizing SharePoint, or developing solutions that need to reference specific list types.
SharePoint List Template IDs
Here are the most commonly used SharePoint List Template IDs that I’ve worked with over the years:
List Template Type Names | List Template ID |
Custom List | 100 |
Document Library | 101 |
Survey List | 102 |
Links | 103 |
Announcements | 104 |
Contacts | 105 |
Calendar | 106 |
Tasks | 107 |
Discussion Board | 108 |
Picture Library | 109 |
DataSources | 110 |
UserInformation | 112 |
Form Library | 115 |
MasterPageCatalog | 116 |
No Code Workflows | 117 |
Custom Workflow Process | 118 |
Wiki Page Library | 119 |
CustomGrid | 120 |
No Code Public Workflows | 122 |
ThemeCatalog | 123 |
AppDataCatalog | 125 |
DataConnectionLibrary | 130 |
Workflow History | 140 |
Project Tasks | 150 |
AccessRequest | 160 |
Promoted Links | 170 |
Agenda | 201 |
Comments | 302 |
Categories | 303 |
Report Library | 433 |
Public Workflows External List | 600 |
AssetLibrary | 851 |
Issue Tracking | 1100 |
How to Find SharePoint List Template IDs
There are different ways to find SharePoint list template ids.
Method 1: Using PowerShell
One of the most reliable ways to get a complete list of template IDs is using PowerShell:
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
$site = Get-SPSite "https://yoursharepointsite.com"
$web = $site.RootWeb
$web.ListTemplates | Select Name, ID | Sort-Object Name
This script will return all available list templates in your SharePoint environment along with their corresponding IDs.
Method 2: Using SharePoint REST API
If you prefer using the REST API, you can retrieve template IDs with this endpoint:
https://yoursharepointsite.com/_api/web/listtemplates
This will return an XML or JSON response (depending on your headers) containing all list templates and their IDs.
Method 3: Check the SharePoint Object Model Documentation
Microsoft’s documentation provides a comprehensive list of template IDs in the SPListTemplateType enumeration, which is helpful when developing SharePoint solutions.
Using Template IDs in SharePoint Development
Creating a List Programmatically with C#
Here’s a simple example of creating a generic list using C# and a template ID:
using (SPSite site = new SPSite("https://yoursharepointsite.com"))
{
using (SPWeb web = site.OpenWeb())
{
web.Lists.Add("My New List", "Description here", SPListTemplateType.GenericList);
// SPListTemplateType.GenericList corresponds to template ID 100
}
}
Using Template IDs in PowerShell
If you’re automating SharePoint administration tasks, you can create lists with PowerShell:
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
$web = Get-SPWeb "https://yoursharepointsite.com"
$template = $web.ListTemplates["Custom List"]
# Or directly use the ID: $templateID = 100
$web.Lists.Add("My PowerShell List", "Created with PowerShell", $template)
Using Template IDs in SharePoint PnP PowerShell
For modern SharePoint Online, PnP PowerShell makes it even easier:
Connect-PnPOnline -Url "https://yourtenant.sharepoint.com/sites/yoursite"
New-PnPList -Title "My PnP List" -Template GenericList
# Or by ID: New-PnPList -Title "My PnP List" -TemplateId 100
If you have any questions about SharePoint List Template IDs or need help with your SharePoint projects, feel free to contact us and check out SharePoint services!
You may also check out: