Which objects a model assigns

A territory model does not assign everything in your org. You say which objects it handles: leads, accounts, a custom object you built, or several of them.

That mapping is held in Territory Object Configuration records: one record per object-and-model pair.

Salesforce activates one model at a time, and only the active model grants record access. Departments such as Inside Sales and Field Service are therefore top-level territories inside the active model, not models of their own. A second model is for building the structure you will activate next, and automatic assignment looks at every model that has saved boundaries (unless an Account row below names one model), so give that next model boundaries only when you are ready to activate it. See Building a territory model.

The shape, with four examples

What you wantObjectModel
New leads assigned by this year's modelLeadFY26 (active)
The same leads also covered by next year's plan while you test itLeadFY27 Plan (planning)
Accounts shown on this year's mapAccountFY26 (active)
Service jobs you built yourselfRepair__cFY26 (active)

Rows two and one together put one object on two models. Rows one, three and four together put three objects on one model. Nothing else is needed to express either — no junction object, no list field.

**Leave the model blank to mean every model. A record with no model named applies to all** models in the org. That is the simplest setup and often the right one: configure the object once and every model handles it.

Adding one

  1. Open the Territory Object Configs tab from the App Launcher. It comes with the Administrator permission set.
  2. Click New. The form shows every setting, grouped into Object, Assignment and Map; the two sections below those are Territory Mapper's own bookkeeping and need nothing from you.
  3. Fill in the three that matter and save:
FieldWhat to put
Config NameAnything that tells you what the row is for, such as Leads – Inside Sales
Object API NameThe object's API name — Lead, Account, Repair__c. This is the only required field
Territory Model IdThe 18-character id of the model, or leave blank for every model

To find a model's id, open the model from the Territory Models list and copy the id from the browser address bar.

One record per object and model. A second record for the same pair is refused when you save it, and the message names the record to edit instead.

Two more fields, Latitude Field and Longitude Field, say which coordinates to use. Leave both blank unless the object has more than one pair. The next section explains how to tell.

Which coordinates it uses

Any object works, standard or custom, as long as it has a latitude and a longitude. You do not need to tell Territory Mapper where they are. It reads the object's fields and recognises three shapes:

ShapeExampleField names it uses
A Geolocation fieldA custom field Site Location on Repair__cSite_Location__Latitude__s and Site_Location__Longitude__s
A standard address with coordinatesBilling, Shipping, Mailing or Other address, or a plain Latitude/Longitude pair such as Lead'sBillingLatitude and BillingLongitude, Latitude and Longitude
Two Number fields whose API names differ only by latitude/longitude, lat/lon or lat/lngJob_Lat__c with Job_Lon__cthe two field names, as they are

One pair: nothing to do. Leave Latitude Field and Longitude Field blank and that pair is used.

More than one pair: you must name one. Account, for example, has both a billing and a shipping address. Type the API names of the pair you want into Latitude Field and Longitude Field, exactly as in the right-hand column above, for example ShippingLatitude and ShippingLongitude. Both must be the same pair. A name that does not exist on the object, or two halves of different pairs, is refused.

🔴 Getting this wrong fails silently. If an object has more than one pair and you name none, or you name one that does not exist, Territory Mapper skips that object — no error, no row in the exception queue, nothing assigned. Records sent through the Assign Territory Flow action do get a row, but it is labelled Callout credential not configured. That label is misleading here: the row's reason text names the coordinate problem, and the fix is these two fields, not the credential. If an object you set up is assigning nothing, check these two fields first.

Turning on assignment, and choosing who gets the record

Two checkboxes decide what the row does, and they are independent:

FieldEffect
Show On MapThe object appears as a layer on the map for that model
Assignment EnabledRecords of that object that have coordinates and no territory yet are assigned to territories in that model

When Assignment Enabled is on, these decide who receives the record:

FieldWhat it does
Assignee RoleOnly members holding this role receive records. Leave blank for any active member of the territory
Hierarchy LevelWhich tier of the territory chain receives it. Blank means the deepest — the most specific territory containing the point
Tie BreakWhen more than one person qualifies. ⚠️ Today only two behaviours exist: Leave Unassigned writes no person — even when only one person holds the role — and every other choice, including Round Robin and All, gives the record to the first holder in a fixed order. Round Robin is not built yet
Assignee FieldThe field on your record where the chosen user is written, such as OwnerId. Blank assigns the territory but no person
Assignment Stamp FieldOptional. A Text field (length 255) you create on the object, so records follow their address when it changes. Without it, new records are assigned (given a Territory Field) but moves are not followed
Reassign Owner On MoveWhen a record moves to another territory: change the owner only if Territory Mapper set it (the default), or always

Both of the last two are explained on When a record's address changes.

Roles come from the role list you set up per model — see Territory roles. A role defined on one model does not collide with a role of the same name on another.

One thing you must provide yourself, for everything except Account

For any object other than Account, Territory Mapper needs somewhere to write the territory it resolved. Create a text field on that object and name it in the Territory Field box.

Eighteen characters is enough; it holds the territory's id. Without it, Territory Mapper tells which records still need assigning from the Assignee Field instead, which works only for a field that is empty on a new record. An owner field such as OwnerId is never empty, so with OwnerId and no Territory Field no record is ever assigned automatically, and no exception row says so. With neither field, it finds no records to work on and nothing happens — no error, no rows.

⚠️ Account works differently, and you cannot turn it off here. Accounts are always assigned, through Salesforce's own territory association, and clearing Assignment Enabled on an Account row does not stop that. What an Account row does control is which model accounts are assigned in: with Territory Model Id filled in, only that model is considered (one row per model if you want several); with it blank, or with no Account row at all, every model that has saved boundaries is considered. The row's Show On Map setting controls the map layer. That is deliberate: moving accounts onto the generic path would lose the Salesforce sharing that cascades from an account to its contacts, cases and opportunities.

One more thing to know: an account that already holds a territory in any model, including a model in Planning, counts as assigned and is left alone. If you ran Salesforce's own assignment rules against a Planning model, or imported territory associations, those accounts will not be assigned in the active model automatically until the other rows are removed.

What has to be true before any of it works

  • The model's territories have boundaries. A territory with no saved boundary cannot contain anything. There is no separate publish step: a saved boundary is used straight away.
  • Records have coordinates. No coordinates, no assignment — see Geocoding clean rules, which is the step that fails silently. ⚠️ Salesforce has no geocoding rule for your own custom objects. Their latitude and longitude must be filled in by your integration, a data load or a Flow.
  • The object has a latitude and longitude Territory Mapper can find, and if it has more than one pair, the configuration names one — see Which coordinates it uses.

Checking your work

Open the map for the model and look at the layer list — a row with Show On Map on appears there. For assignment, save a record with coordinates and look at the field you named in Territory Field. Allow about 10 minutes: a check every five minutes picks up records that changed, and an hourly pass catches anything it missed — see When a record's address changes. If Salesforce geocodes the address after you save, add the time that takes. For assignment at the moment of saving, call the Assign Territory action from a record-triggered Flow on the object; that works only when the record already has coordinates when it is saved. If the field is still empty, check the exception queue before suspecting the boundaries.

Last verified: 2026-11-07 · Owner: MapKraken Labs LLC

Something on this page wrong, or a setup step missing? That is a documentation defect and we want it — tell us and this is the page that gets fixed.