In this article I would like to share a real-life scenario of using content types.
You are working as an IT Support Person. The company employees need to raise various resource requests like:
- Virtual Machine
You need to also capture the configuration information from them, like:
- Computer – CPU Cores, RAM, HDD Size, HDD Type, Users, Admin Users etc.
- Virtual Machine – Domain, All Computer parameters
- Tablet – Model, Storage etc.
Additionally, all these should be tracked along with following fields:
- Status – Open, In Progress, Closed
- Created Date
- Resolved Date
The above scenario is good for content type. We can also apply content type inheritance here.
Following is the list.
Now go to the list > List Settings > Advanced Settings > Allow management of content types > Enable
Now go to Site Settings > Site content types
Following is the Computer content type inheriting from base content type.
Following is the Virtual Machine content type inheriting from Computer.
Following is the Tablet content type inheriting from base content type.
Associate Content Types
Now go to the List > List Settings > Advanced Settings > Add Content Types
Do not forget to remove the default Item content type from the list.
(Click on Item content type and choose Delete option)
Add New Item
Now try adding a new item to our Resource Request list.
You are ready now to expose the list to employees. They can generate new resource requests in a much easier way & the IT Support won’t miss any important parameters regarding the resource.
Please note that unlike document libraries, the content type drop-down won’t appear in the new form Or along with the Create link. You need to do certain JS or CSS customization to enable this.
In this article we have explored how to use content types in a Resource Request scenario. Adding workflows / alerts would notify the IT Support people immediately.