---
title: "Your first CMDB class"
site: admin
version: 2027.1
versions: "all"
url: https://docs-new.servicely.ai/admin/2027.1/cmdb/add-a-cmdb-class/
type: tutorial
application: cmdb
last_updated: 2026-12-03
commit: 6777698daac5
---


This tutorial walks a CMDB administrator through adding a CI class for a device that needs fields the shipped classes do not have. At the end you have a class for Apple laptops with its own field. Its form rolls up the parent classes' fields, and one of its CIs is related to a router.

## What you will learn

- How to choose the parent class for a new CI class.
- How to create the class as a table in Form Builder.
- Why the class needs a CMDB metadata record, and which setting makes its form roll up.
- How to relate two CIs and view the related items diagram.

## Before you begin

- You need the `cmdb_administrator` role to open the **CMDB → Administration** menu and edit CMDB metadata.
- You need the `administrator` role to create the table. The **Data model → Tables** menu and saving in Form Builder are for administrators only.
- Work in a development instance and track the work in a change set, so you can move the class to production later.

The example class is a laptop made by Apple with one extra field, **Chip family**. Replace it with the device you need.

## Step 1: Choose the parent class and create the table

CI class inheritance is an "is a" relationship. Place the new class as low in the tree as it needs to go to inherit the fields it uses. An Apple laptop is a laptop, so its parent is `CMDBLaptop`. Choosing `CMDBEndUserDevice` instead would lose the laptop fields and force you to duplicate them.

<Steps>
  <Step>
    Select **CMDB → Administration → View physical CMDB tree** and find **CMDBLaptop** in the tree.
  </Step>
  <Step>
    Select **Data model → Tables → Create new table**. Form Builder opens the **New table** dialog.

    <Image src="asset:screenshots/admin/cmdb-add-a-cmdb-class/nav-create-new-table.png">The Create new table item in the Tables menu of Data model.</Image>
  </Step>
  <Step>
    Enter **CMDB Apple laptop** in **Label**. **Name** becomes `CMDBAppleLaptop`. CI class names start with `CMDB` to set them apart from other tables.
  </Step>
  <Step>
    In **Parent table**, select **CMDB laptop**.
  </Step>
  <Step>
    Under **Start from**, select **Business data**. It is for records the business keeps and looks up, such as devices. Leave **Menu** at **None** and the **Common** and **Advanced** tabs at their defaults.

    <Image src="asset:screenshots/admin/cmdb-add-a-cmdb-class/new-table-dialog.png">The New table dialog with CMDB laptop as the parent table and Business data selected.</Image>
  </Step>
  <Step>
    Select **Create**. Form Builder opens the new table's first form. Nothing is saved yet.
  </Step>
  <Step>
    Add a field. In the field picker, select the **New field** tab and find **Choice**. Name the field **Chip family**. The **Available values** dialog opens when the field is added. Give the field the values **Intel** and **Apple Silicon**.
  </Step>
  <Step>
    Select **Save**. Servicely creates the table, its field and its form together.
  </Step>
</Steps>

<Callout type="warning">
  Do not add the parent classes' fields from the **Existing field** tab. The form holds only the new class's own fields. The parent classes' fields come from the rollup in step 2.
</Callout>

## Step 2: Register the class in CMDB metadata

A new class shows only its own fields until it has a CMDB metadata record. With **View definition is fragment** set, the CMDB form rolls up the fragments of the class and all its parents, one tab per class.

<Steps>
  <Step>
    Select **CMDB → Administration → CMDB metadata**. The list shows one record per CI class.

    <Image src="asset:screenshots/admin/cmdb-add-a-cmdb-class/cmdb-metadata-list.png">The CMDB metadata list with a record for each shipped CI class.</Image>
  </Step>
  <Step>
    Select **New**.
  </Step>
  <Step>
    Enter the table name `CMDBAppleLaptop` in **Name**. Select the new table in **Table**. Enter **Apple laptop** in **Title**.
  </Step>
  <Step>
    Set **Logical domain** to **Abstract domain** and **View definition is fragment** to **Yes**. Leave **Icon**, **Image** and **Infobox template** at their defaults.

    <Image src="asset:screenshots/admin/cmdb-add-a-cmdb-class/new-cmdb-metadata.png">A new CMDB metadata record with View definition is fragment set to Yes.</Image>
  </Step>
  <Step>
    Select **Create**.
  </Step>
  <Step>
    Go to `/#/CMDBAppleLaptop/_create` in your instance. The **Record details** tab has a tab for each parent class beside the new field.

    <Image src="asset:screenshots/admin/cmdb-add-a-cmdb-class/cmdb-laptop-form.png">The create form of the parent class, CMDB laptop, with a tab for each of its parent classes under Record details.</Image>
  </Step>
</Steps>

`CMDBLaptop` has no fields of its own, so it has no tab. A tab appears as soon as a field is added to it.

## Step 3: Create a CI and relate it to another

A relationship links a provider CI to a dependent CI through a relationship type. Here the laptop is related to a router.

<Steps>
  <Step>
    Create an Apple laptop CI from `/#/CMDBAppleLaptop/_create` and select **Create**.
  </Step>
  <Step>
    Create a router CI from **CMDB → Network → Router**, or open one that exists.
  </Step>
  <Step>
    Select **CMDB → Relationships → New relationship**. Choose a **Type**, such as **Usage**. Select the router as **Provider** and the laptop as **Dependent**, then select **Create**.

    <Image src="asset:screenshots/admin/cmdb-add-a-cmdb-class/new-relationship.png">The new relationship form with a type, a provider and a dependent.</Image>
  </Step>
  <Step>
    Go to `/#/CMDBAppleLaptop` and open the laptop. Its **Relationships** tab lists the relationship.
  </Step>
  <Step>
    Select **View related items**. The diagram shows the laptop and the router. Use the toolbar to zoom, tidy up, or export the diagram as SVG or PNG.

    <Image src="asset:screenshots/admin/cmdb-add-a-cmdb-class/related-items-diagram.png">The related items diagram for a CI, with its toolbar and legend.</Image>
  </Step>
</Steps>

## What you have done

You chose a parent class by the "is a" test, created `CMDBAppleLaptop` with one field, and registered it in CMDB metadata so its form rolls up its parents. You then created two CIs and related them. To load CIs of the new class in bulk, map an import to the table. To give people access to it, the CMDB roles apply to every class that extends the CMDB table.

## Related

- [CMDB data model](page:cmdb/data-model)
- [CMDB roles](page:cmdb/roles)
- [Import a spreadsheet](page:data-import/import-a-spreadsheet)
- [Track changes in a change set](page:environments/track-changes-in-a-change-set)
