Create and Use Site Content Type in Content Type Hub

Introduction 

 
This article will help you to create, publish, republish, unpublish, delete and use the site content type in the SharePoint online list.
 
According to MSDN.
 
Content-Type Hub is a centralized location where you can manage and publish your content types,
  • So that it can available in all site collections.
  • Now web applications can subscribe to this hub and pull down the published content types from the hub.
  • Even receives any updates on the published content types
In SharePoint online, contentType hub browse by using https://teanant.name.com/sites/contenttypehub/ 
 

Create and publish Site Content type in ContentType hub

 
Step 1
 
Click on the create button to create a new site content type.
 
Create And Use Site Content Type In Content Type Hub
 
Step 2
 
Please fill the form with values as per the following and click the ok button. 
 
Create And Use Site Content Type In Content Type Hub
 
Step 3
 
Once the site content type created, we can create or select more columns in the new site content type by clicking on Add from new site column and Add from existing site columns respectively.
 
OR
 
We can skip this step and add the column later by browsing https://teanant.name.com/sites/contenttypehub/ -> site settings->Site Content types
Create And Use Site Content Type In Content Type Hub
I have the created following column by clicking on Add from new site column.
Create And Use Site Content Type In Content Type Hub
 
Step 4
 
After creating or adding respective columns into the site content type, we have to publish the site content type so that it can available to consumed site collections.
 
To publish the site content type, click on the highlighted link.
Create And Use Site Content Type In Content Type Hub
 
Step 5
 
For the first time, by default the publish option will be selected, so simply click on the OK button 
 
Create And Use Site Content Type In Content Type Hub
 
Note
 
It will take a couple of hours to publish the site content type on consumed site collections. 
 

Use Site Content Type in a list

 
Step 1 
 
To use the newly created site content type into the list navigate to consumed site collection and click on Add an app->Custom list, name it as EmployeeCT.
 
 
Create And Use Site Content Type In Content Type Hub
 
Step 2
 
To add content type into the list, we have to activate the allow content type management.
 
To active the content type management, click on list settings -> Advanced Settings -> Allow management of content types
 
Create And Use Site Content Type In Content Type Hub
 
Step 3
 
Now click on the highlighted link
 
Create And Use Site Content Type In Content Type Hub
Step 4 
 
Now select the appropriate site content type (EmployeeCT in my case), click on add, then OK.
 
Create And Use Site Content Type In Content Type Hub
Step 5
 
Now all the site columns created earlier in the site content type will be available in your consumed site collection list.
 
Create And Use Site Content Type In Content Type Hub
 

Republish Site Content type

 
Republishing the site content type is required in the following scenarios before changes are available:
  • When we update the site content type by adding a new column in it.
  • When we change the type of column for the existing column.
To republish the site content type browse: https://teanant.name.com/sites/contenttypehub/ -> site settings->Site Content types
 
Select the appropriate site content type (EmployeeCT in my case) and click on Manage publishing for this content type, select the highlighted option and click the button.
 
Create And Use Site Content Type In Content Type Hub
 
Note
 
It will take a couple of hours to reflect the changes in the consumed site collection. 
 

Unpublish Site Content type

 
To make the site content type not available in any site collections, we unpublished the site content type.
 
To unpublish the site content type browse: https://teanant.name.com/sites/contenttypehub/ -> site settings->Site Content types
 
Select the appropriate site content type(EmployeeCT in my case) and click on Manage publishing for this content type and select the highlighted option and click the ok button.
 
Create And Use Site Content Type In Content Type Hub

Delete the site content type

 
To delete the site content type browse: https://teanant.name.com/sites/contenttypehub/ -> site settings->Site Content types
 
Select the appropriate site content type(EmployeeCT in my case) and click on Delete this site content type
Create And Use Site Content Type In Content Type Hub 
Confirm the delete operation by selecting the OK option on the pop-up window.
 
Create And Use Site Content Type In Content Type Hub