Customer

This field is used to store customer details. A customer can be either an account or a contact, so this is used for a lookup field where we can set up a relationship between the current entity and an account or contact entity.

In addition to the preceding data types, there are some special data types that are not available for setting up custom fields—for example, Unique Identifier, Status, and Status Reason. These data types are used by Dynamics 365 CE only to set up fields during entity creation. Now that we know all of the possible data types, let's understand field editor options. While creating a new custom field, we can configure the following options:

Now we have learned the various field editor options, let's create the following field for our Vehicle entity. Navigate to Fields and click on the Add field button command bar to create a new field. Let's add an image field for our Vehicle entity so that we can show a vehicle image of the record. Fill in the following options in the field editor:

Keep all other options set as their defaults. You can see the preceding steps in the following screenshot:

Click on the Done button to save the image field, and click on the Save Entity notification on the screen to save your changes for the entity. As soon as we create an image field, this field is automatically set under the Primary image field. We can click on the Add field button again to open the editor and create a new field option set to store the vehicle type. Fill in the following details for the Vehicle Type field:

We can add options using an option set editor. Click on Add new item and enter labels one by one, as shown in the following screenshot:

Click on Done to create the field.

In the Vehicle entity, we have a number of lookup fields, so let's see how we can set up a lookup field in the Vehicle entity. Before setting one up, we must make sure we have created a parent entity whose lookup we want to create in the Vehicle entity, like so:

Click on Done. Similarly, we can set up other lookup fields for the Make, Model, and Year entities.