Load Territory Records (Territory Design)

Disponible con licencia de Business Analyst.

Resumen

Adds records (features) or updates existing records for the specified level.

Uso

  • The tool specifies an existing territory solution.

  • The tool specifies the level where records will be added.

  • A point layer will add records to the Territories Centers layer.

  • A polygon layer will add records to the Territories Boundary layer.

  • The tool requires a feature layer or table for input.

Parámetros

EtiquetaExplicaciónTipo de datos
Input Territory Solution

The name of the input territory solution.

Group Layer; Feature Dataset; String
Level

The name of the level to which the data will be loaded.

String
Input Data

The layer or records to be loaded.

Table View
ID Field
(Opcional)

The field containing the ID values to be loaded into the level.

Field
Name Field
(Opcional)

The field containing the name values to be loaded into the level.

Field
Field Map
(Opcional)

The values that will be used for the territory properties.

  • Parent Territory ID—The ID of the parent territory.
  • Locked State—The territory can't be modified.
  • Center Locked—Center points can't be modified and will remain in their fixed locations.

Value Table
Append Data
(Opcional)

Specifies whether the records being loaded will be appended or replaced.

  • Checked—The records being loaded to the specified level will be appended.
  • Unchecked—The records being loaded to the specified level will be replaced. This is the default.
Boolean

Salida derivada

EtiquetaExplicaciónTipo de datos
Updated Territory Solution

The updated territory solution.

Group Layer

arcpy.td.LoadTerritoryRecords(in_territory_solution, level, in_data, {id_field}, {name_field}, {field_map}, {append_data})
NombreExplicaciónTipo de datos
in_territory_solution

The name of the input territory solution.

Group Layer; Feature Dataset; String
level

The name of the level to which the data will be loaded.

String
in_data

The layer or records to be loaded.

Table View
id_field
(Opcional)

The field containing the ID values to be loaded into the level.

Field
name_field
(Opcional)

The field containing the name values to be loaded into the level.

Field
field_map
[[attribute, field],...]
(Opcional)

The values for the territory properties.

  • parent_territory_id—The ID of the parent territory.
  • locked_state—The territory can't be modified.
  • center_locked—Center points can't be modified and will remain in their fixed locations.

Value Table
append_data
(Opcional)

Specifies whether the records being loaded will be appended or replaced.

  • APPENDThe records being loaded to the specified level will be appended.
  • REPLACEThe records being loaded to the specified level will be replaced. This is the default.
Boolean

Salida derivada

NombreExplicaciónTipo de datos
out_territory_solution

The updated territory solution.

Group Layer

Muestra de código

LoadTerritoryRecords example (Python window)

The following Python window script demonstrates how to use the LoadTerritoryRecords function.

import arcpy
arcpy.td.LoadTerritoryRecords("Territory Solution", "Level[1]", r"C:\Temp \sampledata.gdb\StoreLocations", "ID", "Name", None, "REPLACE")

Entornos

Casos especiales

Información de licenciamiento

  • Basic: Requiere Business Analyst
  • Standard: Requiere Business Analyst
  • Advanced: Requiere Business Analyst

Temas relacionados