Territories
Get the list of territories enabled for your organization.
Select
All the filters are executed at client side within the add-in.
SELECT * from Territories;
Columns
| Name | Type | Description |
| Id [KEY] | String | Represents the unique ID of the territory. |
| Name | String | Represents the name of the territory. |
| ParentId | String | Represents the unique ID of the parent territory, if any. |
| Managername | String | Represents the name of the current territory's manager. |
| Managerid | String | Represents the ID of the current territory's manager. |
| CreatedByName | String | Represents the name of the user who created the current territory. |
| CreatedById | String | Represents the ID of the user who created the current territory. |
| ModifiedByName | String | Represents the name of the user who last modified the current territory. |
| ModifiedByid | String | Represents the ID of the user who last modified the current territory. |
| CreatedAt | Datetime | Represents the date and time at which the current territory was created. |
| ModifiedAt | Datetime | Represents the date and time at which the current territory was last modified. |
| Desription | String | Represents the description of the territory, if any. |
| ApiName | String | Represents the api name of the territory. |
| PermissionType | String | Represents the type of permission for the territory. Possible values are read_only and read_write_delete. |
| AccountRuleCriteria | String | Represents the criteria for account module territory rules(comparator,field and value). |
| LeadRuleCriteria | String | Represents the criteria for lead module territory rules(comparator,field and value). |
| DealRuleCriteria | String | Represents the criteria for deal module territory rules(comparator,field and value). |