# Configure Territory Assignment Workflows for Custom Entities

1. Follow Steps 1 – 3 from configuring geocoding workflow for custom entities. This will help you create a new workflow.
2. For the Record fields change option, select all of the address fields to ensure the territory is changed when any of the address fields is changed as shown below:

![](https://gblobscdn.gitbook.com/assets%2F-M0QoyqUVI8_HaZ9FOSL%2F-MJPpfSqiBGdrw7Pv62d%2F-MJPs60g4JjBQWYSbr-T%2Fassets2F-M0QoyqUVI8_HaZ9FOSL2F-MFQ2jl4lwQe66IE27TI2F-MFQ2zH103xuW0r5C4p32F10.jpg?alt=media\&token=5718d686-7a90-4700-a58e-df07f78cf0f9)

3\. Click on ‘***Add Steps***’ and add ***‘AssignTerritoryWorkflow\.AssignTerritory’*** assembly as shown below:

![](https://gblobscdn.gitbook.com/assets%2F-M0QoyqUVI8_HaZ9FOSL%2F-MJPpfSqiBGdrw7Pv62d%2F-MJPsAqwO305y-IxygSU%2Fassets2F-M0QoyqUVI8_HaZ9FOSL2F-MFQ2jl4lwQe66IE27TI2F-MFQ3CPpFinjkRQidFxz2F2.jpg?alt=media\&token=0de4ee92-5d54-42e1-b77b-b6b2d08cf5e4)

4\. Click on ‘***Set Properties***’ and set the address parameter as shown below and Save this:

![](https://gblobscdn.gitbook.com/assets%2F-M0QoyqUVI8_HaZ9FOSL%2F-MJPpfSqiBGdrw7Pv62d%2F-MJPsE4BPd8ajQd-UTtP%2Fassets2F-M0QoyqUVI8_HaZ9FOSL2F-MFQ2jl4lwQe66IE27TI2F-MFQ3P5vckXhApM741p-2F10.jpg?alt=media\&token=622c4abe-4cbe-494a-a96e-ae426b04e02b)


---

# 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/workflows/configure-territory-assignment-workflows-for-custom-entities.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.
