# Override Existing Territory

The Maplytics admin or the System admin can use this feature for the respective entities to decide whether the existing territory(ies) will be overwritten or not while assigning territories to the records.

To use this, first create a field with data type ‘Boolean’ on required entity form for Override territory. Here users can set it to be ‘Yes’ or ‘No’. By default, this field has already been created for Accounts, which can be added to the form. This option will be set as null by default.

Once the field is added to the required entity, Maplytics admin or System admin can go to ***Maplytics App > Settings > Entity map > Open entity map for required entity > Attribute Mappings > Override Territory > Select the field that was added on the entity form.***

![](/files/-MaPI4hue1_v9uOqs3aZ)

Based on the value of the ‘Override territory’ field in the record, it will be decided whether the existing territory(ies) will be overwritten or not while assigning territories to the respective records.

* If the Override territory field is set as ‘Yes’ then while assigning territories, if there are any territory(ies) already assigned to the respective records, then those will be overwritten and replaced by the new territory(ies) that are being assigned.
* If the Override territory field is set as ‘No’, then while assigning territories, if there are any territory(ies) already assigned to the respective records, then those will remain as it is and no new territories will be assigned.
* If Override territory field is set as ‘No’, then while assigning territories, if there is no territory is assigned to the respective records, then it will assign the new territory(ies).


---

# 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/maplytics/azure-map/features/territory-assignment-rule/enable-territory-assignment-rule.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.
