Saturday, May 12, 2012

SharePoint 2010 Content Type IDs - How to Find / Create

SharePoint 2010 Content Type IDs - Reference

Here is the reference for SharePoint 2010 Parent content type id format:

Content Type ID
 System 0x
 Item 0×01
 Document 0×0101
 Event 0×0102
 Issue 0×0103
 Announcement 0×0104
 Link 0×0105
 Contact 0×0106
 Message 0×0107
 Task 0×0108
 Workflow History 0×0109
 Post 0×0110
 Comment 0×0111
 East Asia Contact 0×0116
 Folder 0×0120

How to find content type id in SharePoint 2010?
Go to: Site Settings >> Site Content Type Gallery and pick your content type. The url will be something like:

Get the Content Type ID from URL Parameter Ctype.

Using Powershell in SharePoint 2010 to Get Content type ids
We can retrieve all the available content type IDs using Object Model. Here is the PowerShell snippet
$SPsite = Get-SPSite ""
  write-host "Content Type Name ,  ID "
  write-host "------------------------ "
     $SPContentTypeCollection = $SPweb.AvailableContentTypes; #Get All available Conent Types
            foreach ($SPContentType in $SPContentTypeCollection)
                write-host $SPContentType.Name "," $  
sharepoint 2010 content type id format

How to create content type id in SharePoint 2010.
Just Append a GUID with Parent Content Type IDs (As provided in above table)

MSDN Reference:

You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.

Check out these SharePoint products:

1 comment :

  1. This comment has been removed by a blog administrator.


Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...