# Custom Instances

**Custom Instance** is a specific representation of a **Custom Entity**, which you can define as a data type in the **Settings** module. It is subordinate to the entity in both structure and context and it can only exist within the framework of its parent entity. Based on the entities you have configured, you can add instances of the entities type.\
For example, you have created a custom entity for a Car object. Now, based on the entity, you can create different instances of the Car type, for example a Sport Car.

## Prerequisite for customizing the custom instances

The properties of custom instances depend on the mixin schema for the corresponding [Custom Entity](/ce/management-dashboard/settings/custom-entities.md), which serves as the definition for all instances of the entity. To be able to create an instance, first create a custom entity and define its mixin schema with custom fields.

{% hint style="warning" %}
The **Custom Instances** node is not visible in Management Dashboard until you define it through the **Custom Entity** in the **Management Dashboard Settings**.
{% endhint %}

## Adjusting the Custom Instances view

You can modify the default view to make the custom fields visible and searchable in the list view.

{% stepper %}
{% step %}
**Open orchestration mode**

Choose the orchestration icon.

<div align="left"><img src="/files/FLMAtAm2uV1Mzjj8oVzX" alt=""></div>
{% endstep %}

{% step %}
**Select mixin fields**

Select the mixins that you want to add to the view and choose **Save**.\
As a result, your custom instance view is updated with the columns for the fields configured in your mixin schema.

<figure><img src="/files/MRKZCS7JQE8TKtke0OFw" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

## Creating a custom instance

{% stepper %}
{% step %}
**Choose to create a custom instance**

Go to **Custom Instances** and choose **Create New Custom Instance**.
{% endstep %}

{% step %}
**Provide the instance details**

* In the **General** tab, add the **ID** and **Name** for the instance.
* The fields from the custom entity schema are automatically rendered in another tab named after the schema. Add values for the defined custom fields.
  {% endstep %}

{% step %}
**Save the instance**

Choose **Save** to create an object in the system.
{% endstep %}

{% step %}
**Add media**

Saving the object activates the **Media** tab. Here, you can attach different files in relation to the instance. The supported types are PDF, JPG, PNG, CSV, DOCX, TXT. Choose the file from your device or drag and drop it to the drop area. Then upload the file using the **Upload** icon.

<figure><img src="/files/cXpR7X4hfnSxmnD0fQCp" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

### Reference types in custom instances

The custom entities schema supports adding fields that reference to other types in the system. This way, their instances can have one-to-one or one-to-many relationship to instances of other custom entities or certain Emporix entities, such as cart, category, customer, customer segment, legal entity, media, order, price list, and product.

When you create an instance of an entity that contains reference fields, you are able to select an entity or multiple entities (depending on the setup) from the dropdown list.

<figure><img src="/files/FCyGtRj9dqqeZ1vONIS3" alt=""><figcaption></figcaption></figure>

From the edit mode, you can directly navigate to the referenced instances to check their details, or use the convenient option to copy their IDs. Remove the referenced instance by choosing **x** in the selector bar or **-** icon next to the item on the list.

<figure><img src="/files/9CTD9vCPReumqi55YoNC" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.emporix.io/ce/management-dashboard/custom-instances.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
