How to find the ContentTypeId

This topic describes how to find the contenttypeID. You will need to enable the management of content types so that the you can review the list of content types associated with the list, open the content type, and copy the ID from the URL.

Enable the management of content types

You will need to enable the management of content types for the list in order to access the List content types.

To Enable the management of content types

  1. Navigate to your list.
  2. Click Edit this list. Click LIST in the ribbon.
  3. Click List Settings in the ribbon.
  4. Click Advanced settings under General Settings.
  5. Select Yes under Allow management of content types?
  6. Click Okay.

Find the ContentTypeId using SharePoint

Navigate to the List Settings page and open the content type. SharePoint will reference the ContentTypeId in the URL.

To find the listID

  1. Navigate to your list.
  2. Click Edit this list. Click LIST in the ribbon.
  3. Click List Settings in the ribbon.
  4. click the Item Content Type under the Content Type list.
  5. Copy the URL and find the following the strong following ctype. The string may look like this:
    "ctype=0x01006ACB74139E82C34FB9A168AE0D163CB4"

You can also retrieve the contentType ID using C#. For more information and a code sample, see SPContentType.Id.

Related information

Prerequisites for working with the API