# Metamodel Governance

With this feature, you can create Metamodels directly from your ServiceNow data.

{% hint style="info" %}
**Metamodel Overview**

For more general information on YouDesign Command and Metamodels, see [Metamodel](doc:metamodel).
{% endhint %}

## Metamodel Governance Table

With this feature, you can create Metamodels directly from your ServiceNow data. This feature allows you to document and plan your target metamodel including tables, fields and relationships.

There are four core elements of the Metamodel Table:

| Interface               | Definition                                                        |
| ----------------------- | ----------------------------------------------------------------- |
| Metamodel Relationships | Contains Metamodel relationships.                                 |
| Metamodel Types         | Contains ServiceNow tables available to build the metamodel from. |
| Metamodel Properties    | Contains valid tables.                                            |
| Metamodel Domains       | Collection of Metamodel types.                                    |

### Launch Metamodel Table

To access the Metamodel Governance interfaces:

1. Select **All** to launch the Application Navigator.
2. Filter for *metamodel*.
3. Select an interface.

!\[Image]\(../images/c46d463-YouDesign Command-metamodel16.png)

## Create Metamodel relationships

To make metamodel relationships, you must first make the Metamodel Types available and then create relationships between them.

### Add a Metamodel Type

1. Launch [**Metamodel Types**](doc:metamodel-governance#launch-metamodel-interfaces).
2. Select **New** to create a new entry.

!\[]\(../images/5801ae1-YouDesign Command-metamodel3.png "YouDesign Command-metamodel3.png")

3. Search for a table to make the relationship with. Add description (optional).
4. Select **Submit**.

!\[]\(../images/b5c89fd-YouDesign Command-metamodel9.png "YouDesign Command-metamodel9.png")

The element is now available to create a metamodel relationship.

### Create Metamodel Relationship

1. Launch [**Metamodel Relationship**](doc:metamodel-governance#launch-metamodel-interfaces).
2. Select **New**.

!\[]\(../images/51c24c1-YouDesign Command-metamodel10.png "YouDesign Command-metamodel10.png")

3. Filter for Suggested Relationship. In this case, strategy relates to Business Capability.
4. Select **Submit**

!\[]\(../images/3c256ef-YouDesign Command-metamodel12.png "YouDesign Command-metamodel12.png")

{% hint style="warning" %}
**Active Status**

Make sure the status is set to active.
{% endhint %}

### View metamodel relationship

1. Launch [**Metamodel Types**](doc:metamodel-governance#launch-metamodel-interfaces).
2. Select an entry in the list.
3. Scroll down to the Relationships section and you will see an image of all metamodel relationships that exist for this element.

!\[]\(../images/5433e5f-YouDesign Command-metamodel13.png "YouDesign Command-metamodel13.png")

## Create a Metamodel field

To check which fields are associated with a table:

1. Launch [**Metamodel Types**](doc:metamodel-governance#launch-metamodel-interfaces).
2. Scroll to the properties panel.

!\[]\(../images/4edc599-YouDesign Command-metamodel4.png "YouDesign Command-metamodel4.png")

If you would like to add an additional field:

1. Launch [**Metamodel Properties**](doc:metamodel-governance#launch-metamodel-interfaces).
2. Select **New**.
3. Give the field a name and select a Property Type.

!\[]\(../images/69eac1d-YouDesign Command-metamodel5.png "YouDesign Command-metamodel5.png")

4. Select **Submit**.

If you return to Metamodel types you can see the new field has been added to All Properties for the relevant table.

!\[]\(../images/dc9b02d-YouDesign Command-metamodel6.png "YouDesign Command-metamodel6.png")

## Organize Metamodel Types by Domain

You may want to group multiple Metamodel types by a particular domain (for instance, Market or Business Operation). To do this, add the domain to the Metamodel Domain interface and then choose this domain within the Metamodel type.

### Add a new domain

1. Launch [Metamodel Domains](doc:metamodel-governance#launch-metamodel-interfaces).
2. Select **New**.

!\[]\(../images/c60d065-YouDesign Command-metamodel14.png)

3. Create a name, description (optional) and set appropriate status for the domain.
4. Select **Submit**.

!\[]\(../images/2af877a-YouDesign Command-metamodel15.png)

## Request creation of table

In order to ensure your ServiceNow data is unaffected by changes made while making Metamodel relationships in YouDesign Command, by default only preconfigured tables are available for creating Metamodels. However, you can request the creation of a table if you need it to generate a Metamodel.

{% hint style="warning" %}
**Table Request Approval**

Requests for tables must be **approved** by your ServiceNow admin before they can be used in creating Metamodels.
{% endhint %}

An element without an associated table will show *empty* under *Table* column in Metamodel Type page.

!\[]\(../images/7171adc-YouDesign Command-metamodel7.png "YouDesign Command-metamodel7.png")

To request the creation of a table:

1. Select the Metamodel element.
2. Select **Request Table**.
3. Fill in the request form per your company's guidelines.

!\[]\(../images/3776e1b-YouDesign Command-metamodel8.png "YouDesign Command-metamodel8.png")

4. Select **Request Approval**

This will notify your ServiceNow administration team, who will review the request.


---

# 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://docs.ins-pi.com/command/features/metamodel-governance.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.
