# Multiple Territories Assigned to a Record

If a user needs to assign more than one territory to the entity records, user can enable the feature of Multiple Territories for a record. This feature will help the user to visualize records which lie in single or multiple territories. After assigning the territories, they can plot the territories to visualize the respective records lying into them.

To start using the feature of Multiple Territories for a record, user can follow the steps mentioned below:

**Step 1: Enable Multiple Territories:** Go to Settings > Maplytics > Maplytics Configuration Details > Default configuration detail record > Configuration option > Select ‘Enable Multiple Territories’.

{% hint style="info" %}
***User cannot undo this option, once selected and saved.***
{% endhint %}

**Step 2: Creating N: N relationship of entity with Territory:** Go to Settings > Customizations > Customize the System > Entities > Select Entity > N: N Relationships > New Many-to-Many Relationship

**Step 3: View the list of territories assigned to a record:** User can add a sub-grid to show the territories that an entity record is associated with. This step is optional, even if a sub grid is not added, the assigned territories will get associated with the records in background.

![](https://gblobscdn.gitbook.com/assets%2F-M0QoyqUVI8_HaZ9FOSL%2F-MJOhJYjkLDbGWet5Rm6%2F-MJOiz0mKBE5Br8sJjtd%2Fmultiple%20territories%20assigned%20to%20record%201.jpg?alt=media\&token=021a7de1-0993-4cdb-9e06-22a9f02cb98e)

**Step 4: Select relationship for the field ‘Territory Relationship’ in Attribute mapping section of Entity map:** Go to Settings > Maplytics > Entity maps > Attribute mappings > Territory Relationship > Select ‘Entity - Territory’ relationship.

**Step 5: Assign territories to records:** User can either run **Batch Processing Tool** or the ***Inogic.Maplytics.AssignTerritoryWorkflow*** on the records to assign the territories to the records.

After assigning the territories, user can choose the Search option of ‘By territory’ to plot the territories along with the respective records. The below screenshot shows a record plotted on the Detail map along with the two overlapping territories which are assigned to the same record.

![](/files/-MaSTHJ-YdP_bIF6LTsr)

{% hint style="success" %}
For any queries, reach out to us at <crm@inogic.com>
{% endhint %}


---

# 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.maplytics.com/features/multiple-territories-assigned-to-a-record.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.
