# Creating Relationships

You can create relationships between ServiceNow elements in the YouDesign Command Relationship Editor. You can also commit changes directly in the Relationship Editor and adjust settings to blacklist (block) or whitelist (authorize) particular user groups.

{% hint style="warning" %}
**Relationship Mapping Restrictions**

You can only map upstream, downstream, or both upstream and downstream relationships between tables that are available as Suggested Relationships or that your Administrator has approved. If you do not see an option to map a relationship between entities but require it, contact your Administrator.
{% endhint %}

## Launch the Relationship Editor

1. Select the **All** button to access the application navigator.
2. Filter for the table that contains the element you want to map.

!\[]\(../../images/ff104fc-YouDesign Command-create\_relationships1.png "YouDesign Command-create\_relationships1.png")

3. From the table view, select an element.
4. Scroll down to the Relationships tab, and select **Create Relationships**.

!\[]\(../../images/f03d6ea-YouDesign Command-create\_relationships2.png "YouDesign Command-create\_relationships2.png")

{% hint style="info" %}
**Element Relationship List**

Before launching the Relationship Editor, you can see information on relationships between the primary element and other elements in the relationship tab. You can customize this view by selecting the **Settings** button on the right side of the Relationship tab.
{% endhint %}

## Map relationships between elements

Initially, the primary element appears in the center of the editor.

1. Select the **Select table** box.
2. Enter the table that contains the element you wish to map the primary element to or select an option from the dropdown menu. As you type, the options are filtered.

!\[]\(../../images/29d8368-YouDesign Command-create\_relationships10.png "YouDesign Command-create\_relationships10.png")

3. Drag the element towards the primary element in the center of the Relationship Editor. An orange ring appears around the border of the left or right circle (or both), indicating a valid connection point for a relationship.
4. Move your cursor over the top of the left or right circle to make a connection. The circle changes to a solid orange color.
5. If more than one relationship type is available, a pop-up menu appears. Confirm the type of relationship you want to establish between the elements.
6. Select **Done**.

!\[]\(../../images/6305b8a-YouDesign Command-create\_relationships3.gif "YouDesign Command-create\_relationships3.gif")

## Select multiple elements

1. Select each element you want to map to the main element. Select each element again to deselect them.

!\[]\(../../images/754272c-YouDesign Command-create\_relationships4.gif "YouDesign Command-create\_relationships4.gif")

2. Drag the elements towards the primary element in the center of the Relationship Editor. If relationships can be made, an orange ring appears around the border of the left or right circle (or both).
3. Move your cursor over the top of the left or right circle to make the connections. The circle changes to a solid orange color.
4. If more than one relationship type is available, a pop-up menu appears. Confirm the types of relationships you want to make between the elements. You can select a type for each relationship individually, or you can assign one relationship type to all elements at once by selecting the bottom **tick-box**, choosing a relationship type, and selecting **Assign**.

!\[]\(../../images/87b277a-YouDesign Command-create\_relationships5.png "YouDesign Command-create\_relationships5.png")

5. Select **Done**.

## Specify Relationship Fields

Certain relationships have multiple suggested relationships. To map these elements, you must specify the organizational unit. The procedure for mapping these elements is as follows:

1. Select the element you wish to map to the primary element.
2. The left and right circles of the primary element change to orange. Drag the mapped element to either circle.
3. A Relationship Fields pop-up appears. Choose the relevant Organizational Unit for the element. Select **Confirm** or **Skip for now**.

!\[]\(../../images/0c705be-YouDesign Command-create\_relationships8.png "YouDesign Command-create\_relationships8.png")

4. The element is now mapped to the primary element.

!\[]\(../../images/c72f525-YouDesign Command-create\_relationships9.png "YouDesign Command-create\_relationships9.png")

## Commit Changes

You can commit any relationships you add or delete during a session in the Relationship Editor as follows:

1. Select **Commit Changes**.
2. A pop-up menu containing all the changes you made during your session appears. Select **Commit**.

!\[]\(../../images/1de721e-YouDesign Command-create\_relationships6.png "YouDesign Command-create\_relationships6.png")


---

# 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/relationship-editor/relationship-editor-create.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.
