Build Territories by Account Field
account_buildBuilds territories that follow an account column, such as rep name or territory code from CRM: each part goes to the group holding most of its accounts (conflict_policy). Adds a new alignment (TAL). Needs an ingested point_layer, grouping_field, part_layer, and tal_label. Grouping values are labels, not balance metrics. part_scope: bbox_intersect (default; parts near the accounts) or explicit with part_filter, e.g. {state_abbr: TX}. A declared visit-frequency column needs visit_frequency_field or ignore_visit_frequency (CLARIFICATION_REQUIRED otherwise). With map_session_id the open map is the input. Returns a task; the result carries tal_id and ts_handle. analyze reports the statistics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ts | No | ||
| part_ids | No | ||
| tal_label | No | ||
| ts_handle | No | ||
| part_layer | No | ||
| part_scope | No | ||
| output_mode | No | tal is the default. assignments returns assignments_artifact plus an authenticated download_url and a key-less share_url; no ts_handle, tal_id, or map_refresh. | tal |
| part_filter | No | ||
| point_layer | Yes | ||
| repair_policy | No | Topology repair for dissolved territories. default fills interior holes in the dissolved geometry (no part is added or reassigned; repair_summary.changed_part_ids lists the territories' own parts). report_only detects holes and changes nothing (warning REPAIR_AVAILABLE). strict fails with REPAIR_REQUIRED when a hole is found. | default |
| grouping_field | No | ||
| map_session_id | No | ||
| conflict_policy | No | plurality_account_count | |
| expected_revision | No | ||
| visit_frequency_field | No | ||
| ignore_visit_frequency | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||