Steps for Creating Hierarchical Custom Records
This example describes the steps for creating a hierarchical custom record for the train carriage scenario described in Hierarchy of Parent-Child Instances of the Same Record Type, which you should read before continuing. For this example, all record instances are created using a single custom record.
Complete the following steps:
-
Creating the Custom Record Type
-
Creating the Record Instances
-
Creating the Custom Field
Creating the Custom Record Type
First, create the custom record type to be used for the hierarchy. In this example, the custom record type is Train Carriage.
To create the custom record type
-
Go to Customization > Lists, Records, & Fields > Record Types > New.
-
In the Name field, enter Train Carriage.
-
Check the Hierarchy box to enable parent-child relationships.
-
Click Save.
Creating the Record Instances
For this example, assume your company has multiple locomotives, each with associated wagons. The following steps create record instances for one locomotive and its wagons.
To create the record instances:
-
From the Record Types page, locate Train Carriage and click New Record.
-
In the Name field, enter Locomotive 1 (the parent record).
-
Leave the Parent field blank.
-
Click Save & New.
-
In the Name field, enter Wagon 2 (the first child record instance).
-
In the Parent field, select Locomotive 1.
-
Click Save & New.
-
In the Name field, enter Wagon 3 (the second child record instance).
-
In the Parent field, select Locomotive 1 : Wagon 2.
-
Click Save & New.
-
In the Name field, enter Wagon Last (the final child record).
-
In the Parent field, select Locomotive 1 : Wagon 2 : Wagon 3.
-
Click Save.
The final list of record instances looks like this:

Creating the Custom Field
Now, create the custom field that will be used on forms. For this example, the following steps create a custom entity field.
To create the custom field:
-
Go to Customization > Lists, Records, & Fields > Entity Fields > New.
-
In the Label field, enter Train Carriage.
-
In the Type field, select List/Record.
-
In the List/Record field, select Train Carriage.
-
On the Applies To subtab, select where the field should apply. For this example, check Customer and Project.
-
Click the Display subtab.
-
In the Subtab field, select where you want the field to appear. For this example, select Main.
-
Click Save.
You can now add this field to your forms as needed. For more information, see Configuring Fields or Screens.
The field on a form looks similar to this:
