An account assignment rule that assigns accounts to territories based on account fields. Only available if territory management has been enabled for your organization. For more information, see the “Territory Management Overview” topic in the Salesforce.com online help.
create(), update(), delete(), query(), retrieve(), describeSObjects(), getDeleted(), getUpdated()
| Field | Field Type | Field Properties | Description |
|---|---|---|---|
| BooleanFilter | string | Create | Advanced filter conditions that were specified for the rule in the online application. For example, “(1 AND 2) OR 3.” |
| IsActive | boolean | Create | Indicates whether the rule is active (true) or inactive (false). Via the API, active rules run automatically when new accounts are created and existing accounts are edited. The exception is when the IsExcludedFromRealign field on an account is true, which prevents account assignment rules from evaluating that account. |
| IsInherited | boolean | Create | Indicates whether the rule is an inherited rule (true) or a local rule (false). An inherited rule also acts upon territories below it in the territory hierarchy. A local rule is created at the immediate territory and only impacts the immediate territory. |
| Name | string | Create | A name for the rule. Limit is 80 characters. |
| TerritoryId | reference | Create | ID of the territory where accounts that satisfy this rule are assigned. For information on IDs, see ID Field Type. |