# Defining Resolution Rules

***Example 1:*** An external configuration item resource may have a field, Office, for example to identify the location of the Configuration Item. Through a resolution rule, the referenced location can be imported as a new Location or matched to an existing location in ASM Core, linked to the config item.

***Example 2:*** A user has a company defined in the directory server. Through a resolution rule, the referenced company can be imported as a new organization record and defined in the Organization field on the person details record for the imported user.

## Setup Resolution Rule

1. Select the **Details** tab and add the name and, optionally, a description of the rule.
2. Select the **Search** tab and specify the criteria for determining the CMDB entity to populate the reference field in ASM Core
3. At **Target Type,** click to select the CMDB entity type that the resolution rule will use to populate the field.
4. Use the rules builder panel below the **Target Type** field to add the rule. Start by clicking the question mark (?) to create the first part of the statement. Then click  to pick a field from the multi-tiered field selector. You can select a criterion relating to either the ASM Core field or the external resource field. For more information on defining rules, see Using the Rules Builder. In the second part of the rule, specify the value that should populate the ASM Core field should the criteria be met on the following lines.
5. Select the **Defaults** tab and specify the default field mapping to populate the ASM Core field. The default field mapping is used when no match can be found based on the criteria specified in the Search tab, or if multiple matches are found:
   * Select **Default to**.
   * Specify the default CMDB item for the field.
   * Optionally, select **Update resolved item** to update the details of the resolved (matched) existing CMDB item using the information specified in the **Create/Update Field Mappings** section
6. You can set the default to create a new CMDB item.
7. To create a new CMDB item:
8. Click OK to save the resolution rule.


---

# 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.alemba.com/asm-hermes/integrate/managing-integration/setting-up-the-integration-platform/defining-resolution-rules.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.
