Get a territory
get
/crmRestApi/resources/11.13.18.05/territories/{TerritoryVersionId}
Request
Path Parameters
-
TerritoryVersionId(required): integer(int64)
The unique identifier of the territory version.
Query Parameters
-
dependency: string
This parameter specifies dependencies which are fields that are set before and rolled back after generating the response. Generally they are used to preview the effects of an attribute change. The fields specified in this parameter are always set in the resource instance in question. When a child resource collection is requested and the parameter is set, the fields will be set in the parent resource instance before generating the resource collection payload. The value of this query parameter is a set of dependency fields. Example: dependency=ProductId=2
Format: <attr1>=<val1>,<attr2>=<value2> -
expand: string
When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". More than one child can be specified using comma as a separator. Example: ?expand=Employees,Localizations. Nested children can also be provided following the format "Child.NestedChild" (Example: ?expand=Employees.Managers). If a nested child is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?expand=Employees.Managers" is the same as "?expand=Employees,Employees.Managers" (which will expand Employees and Managers).
-
fields: string
This parameter filters the resource fields. Only the specified fields are returned, which means that if no fields are specified, no fields are returned (useful to get only the links). If an indirect child resource is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?fields=Employees.Managers:Empname" is the same as "?fields=;Employees:;Employees.Managers:Empname" (which will only return the "Empname" field for Managers). the value of this query parameter is a list of resource fields. The attribute can be a direct (Example: Employees) or indirect (Example: Employees.Managers) child. It cannot be combined with expand query parameter. If both are provided, only fields will be considered.
Format: ?fields=Attribute1,Attribute2
Format for fields in child resource: ?fields=Accessor1:Attribute1,Attribute2 -
links: string
This parameter can be used to show only certain links while accessing a singular resource or a resource collection. The parameter value format is a comma-separated list of : <link_relation>
Example:
self,canonical -
onlyData: boolean
The resource item payload will be filtered in order to contain only data (no links section, for example).
Header Parameters
-
Metadata-Context: string
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version: string
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Root Schema : territories-item-response
Type:
Show Source
object-
CoverageModel: string
Title:
CoverageMaximum Length:30Default Value:SALES_ACCOUNT_CENTRICIndicates if the dimensions of the territory are based on account attributes or partner attributes. -
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64The user who created the territory. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueThe date the territory was created. -
DeleteFlag: boolean
Read Only:
trueIndicates if the logged-in user can delete the territory. -
Description: string
Title:
DescriptionMaximum Length:240The description of the territory. -
EffectiveEndDate: string
(date)
Title:
Effective End DateThe date and time when the territory version becomes inactive. -
EffectiveStartDate: string
(date)
Title:
Effective Start DateThe date and time when the territory version becomes active. If the StatusCode is DRAFT, then this value should be empty. Else, if the StatusCode is FINALIZED, then this value should be today's date. -
EligibleForQuotaFlag: boolean
Title:
Eligible for QuotaMaximum Length:1Default Value:falseIndicates whether the territory is going to change during a territory realignment. If the value is True, then the territory is unlikely to change during a major realignment, and therefore a quota can be entered against the proposed definition. The default value is true. -
ForecastedByParentTerritoryFlag: boolean
Title:
Forecast Invisible to OwnerMaximum Length:1Default Value:falseIndicates if the forecast for the territory is made by its parent territory. The default value is false. -
ForecastParticipationCode: string
Title:
Enable ForecastingMaximum Length:30Default Value:REVENUEThe code for the forecast participation. The accepted values are: REVENUE, NONREVENUE, REVENUE_AND_NONREVENUE, and NON_FORECASTING. -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:trueThe date the territory was last updated. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64The user who last updated the territory. -
LastUpdateLogin: string
Title:
Last Update LoginRead Only:trueMaximum Length:32The login of the user who last updated the territory. -
LatestVersionFlag: boolean
Title:
Latest VersionMaximum Length:1Default Value:trueIndicates whether the territory is the latest active version. If the value is True, then the territory version is the latest active version of the territory. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
Name: string
Title:
Territory NameMaximum Length:60The name of the territory. -
OrganizationName: string
Title:
OrganizationRead Only:trueThe name of the organization to which the owner belongs. -
Owner: string
Title:
OwnerMaximum Length:360The owner of the territory. -
OwnerEmail: string
Title:
Owner EmailRead Only:trueMaximum Length:320The email address of the owner. -
OwnerResourceId: integer
(int64)
Title:
Resource IDThe unique identifier of the owner resource. -
OwnerResourceNumber: string
Title:
Owner Registry IDRead Only:trueMaximum Length:30The registry ID of the owner. -
OwnerTrans: string
Title:
OwnerMaximum Length:255The name of the owner. -
ParentTerritoryId: integer
(int64)
Title:
Parent Territory IDThe unique identifier of the parent territory. -
ParentTerritoryLovSwitcher: string
The field controls the display of parent territory list of values on the UI. This attribute is used for an internal purpose.
-
ParentTerritoryNumber: string
Title:
Parent Territory NumberRead Only:trueMaximum Length:30The number of the parent territory. -
ParentTerritoryTrans: string
The name of the parent territory.
-
ParentUniqueTerritoryNumber: string
Title:
Parent Territory Unique NumberMaximum Length:30The unique territory number of the parent territory. -
PartnerId: integer
(int64)
Title:
Partner IDThe unique identifier of the partner associated with the territory. -
PartnerName: string
Title:
PartnerMaximum Length:360The name of the partner associated with the territory. -
PartnerNumber: string
Title:
Partner NumberMaximum Length:30The number of the partner. -
PartnerProgramId: integer
(int64)
Title:
Partner Program IDThe unique identifier of the partner program in which the partner is enrolled. -
ProgramName: string
Title:
Partner ProgramMaximum Length:150The name of the partner program to which the partner is enrolled. -
ProposalNumber: string
Title:
Proposal NumberMaximum Length:30The number of the proposal the territory is associated with. -
ReviseQuotaFlag: boolean
Title:
Revise QuotaMaximum Length:1Indicates whether a submitted quota needs to be revised. -
RevisionDescription: string
Title:
Revision DescriptionMaximum Length:1000The description of the reason for revising the quota. -
RevisionReason: string
Title:
Revision ReasonMaximum Length:30The user-defined reason for revising the quota. -
SourceTerrId: integer
(int64)
Title:
Source Territory IDThe unique identifier of the territory from which the dimensions are inherited. -
SourceTerrLastUpdateDate: string
(date-time)
Title:
Source Territory Last Update DateThe date and time when the source territory was last updated. This attribute is related to the inheritance of dimensions by recipient territories from source territories. -
SourceTerrName: string
Title:
Source TerritoryMaximum Length:60The name of the territory from which the selected dimensions are inherited. -
SourceTerrVersionId: integer
(int64)
Title:
Source Territory Version IDThe unique identifier of the source territory version. -
SourceUniqueTerritoryNumber: string
Title:
Source Unique Territory NumberMaximum Length:30The unique territory number of the source territory. -
StatusCode: string
Title:
StatusMaximum Length:30Default Value:DRAFTThe code indicating the status of the territory. The accepted values are DRAFT and FINALIZED. -
TerritoryFunctionCode: string
Title:
Territory FunctionMaximum Length:30Business function associated with the territory -
TerritoryHierarchyUniqueTerritoryNumber: string
Title:
Territory Hierarchy Unique Territory NumberRead Only:trueMaximum Length:30The unique alternate identifier of the territory at the top of the hierarchy to be exported. -
TerritoryId: integer
(int64)
Title:
Territory IDThe unique identifier of the territory. -
TerritoryLevel: integer
(int64)
Title:
Territory LevelThe level of the territory in the territory hierarchy. -
TerritoryLineOfBusiness: array
Line of Business
Title:
Line of BusinessThe line of business resource is used to view the lines of business associated with a sales territory. A line of business is a general term that describes the products or services offered by the company or organization. The line of business object contains all lines of business for historical, active, and draft territory versions. It is optional for a sales territory to have associated lines of business. -
TerritoryNumber: string
Title:
Territory NumberMaximum Length:30The unique alternate identification number for the territory. -
TerritoryResource: array
Resources
Title:
ResourcesThe resources resource is used to view the resources, such as owner or sales people associated with a sales territory. The equivalent functional term for resource is team member. The resources object contains all team members for historical, active, and draft territory versions. Each sales territory must have an owner, so each of the sales territory versions has at least one resource record. -
TerritoryRule: array
Rules
Title:
RulesThe rules resource is used to view the territory rules associated with a sales territory. The equivalent functional term for rule is coverage. The coverage is what identifies the scope of responsibility of the sales territory team in the market space. The rules object contains a record for each of the coverage for historical, active, and draft territory versions. A territory version may or may not have a coverage associated with it. -
TerritoryVersionId: integer
(int64)
Title:
Territory Version IDThe unique identifier of the territory version. -
TerrProposalId: integer
(int64)
Title:
Territory Proposal IDThe unique identifier of the territory proposal. -
TypeCode: string
Title:
TypeMaximum Length:30Default Value:PRIMEThe code indicating the type of the territory. For example, PRIME or OVERLAY. -
UniqueTerritoryNumber: string
Title:
Unique Territory NumberMaximum Length:30Unique identification number for this territory -
UpdateFlag: boolean
Read Only:
trueIndicates if the logged-in user can update the territory.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : Line of Business
Type:
arrayTitle:
Line of BusinessThe line of business resource is used to view the lines of business associated with a sales territory. A line of business is a general term that describes the products or services offered by the company or organization. The line of business object contains all lines of business for historical, active, and draft territory versions. It is optional for a sales territory to have associated lines of business.
Show Source
Nested Schema : Resources
Type:
arrayTitle:
ResourcesThe resources resource is used to view the resources, such as owner or sales people associated with a sales territory. The equivalent functional term for resource is team member. The resources object contains all team members for historical, active, and draft territory versions. Each sales territory must have an owner, so each of the sales territory versions has at least one resource record.
Show Source
Nested Schema : Rules
Type:
arrayTitle:
RulesThe rules resource is used to view the territory rules associated with a sales territory. The equivalent functional term for rule is coverage. The coverage is what identifies the scope of responsibility of the sales territory team in the market space. The rules object contains a record for each of the coverage for historical, active, and draft territory versions. A territory version may or may not have a coverage associated with it.
Show Source
Nested Schema : link
Type:
Show Source
object-
href: string
Title:
hyperlink referenceThe URI to the related resource. -
kind: string
Title:
kindAllowed Values:[ "collection", "item", "describe", "other" ]The kind of the related resource. -
name: string
Title:
nameThe name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relationAllowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]The name of the relation to the resource instance. Example: self.
Nested Schema : properties
Type:
Show Source
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Nested Schema : territories-TerritoryLineOfBusiness-item-response
Type:
Show Source
object-
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64The user who created the territory line of business. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueThe date the territory line of business was created. -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:trueThe date the territory line of business was last updated. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64The user who last updated the territory line of business. -
LastUpdateLogin: string
Title:
Last Update LoginRead Only:trueMaximum Length:32The login of the user who last updated the territory line of business. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
LobCode: string
Title:
Line of Business CodeMaximum Length:30The code for the line of business. -
Meaning: string
Title:
Line of BusinessRead Only:trueMaximum Length:80The meaning of the line of business. -
TerritoryVersionId: integer
(int64)
Title:
Territory Version IDThe unique identifier of the territory version. -
TerrLobId: integer
(int64)
Title:
Line of Business IDThe unique identifier of the line of business. -
UniqueTerritoryNumber: string
Title:
Unique Territory NumberMaximum Length:30The unique territory number of the territory line of business.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : territories-TerritoryResource-item-response
Type:
Show Source
object-
AdministratorFlag: boolean
Title:
Team Member AdministratorMaximum Length:1Indicates whether the resource is an administrator of the territory. -
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64The user who created the territory team member. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueThe date the territory team member was created. -
Email: string
Title:
EmailRead Only:trueMaximum Length:320The email address of the territory team member. -
FunctionCode: string
Title:
Team Member FunctionMaximum Length:30The code for the function of the resource associated with the territory. -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:trueThe date the territory team member was last updated. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64The user who last updated the territory team member. -
LastUpdateLogin: string
Title:
Last Update LoginRead Only:trueMaximum Length:32The login of the user who last updated the territory team member. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
ManageForecastFlag: boolean
Title:
Forecasting DelegateMaximum Length:1Indicates whether a territory resource has been given the responsibility to manage the territory forecast on behalf of the owner of the territory. -
Manager: string
Read Only:
trueMaximum Length:360The name of the manager. -
OrganizationName: string
Title:
OrganizationRead Only:trueMaximum Length:240The name of the organization. -
OwnerFlag: boolean
Title:
OwnerRead Only:trueIndicates whether the territory team member is the owner. -
ResourceId: integer
(int64)
Title:
Resource IDThe unique identifier of the resource from the resource manager. -
ResourceName: string
Title:
Resource NameRead Only:trueMaximum Length:360The name of the resource associated with the territory. -
ResourceNumber: string
Title:
Resource Registry IDRead Only:trueMaximum Length:30The registry ID of the territory team member. -
RoleName: string
Title:
Team Member RoleRead Only:trueMaximum Length:60The name of the team member role associated with the resource. -
TerritoryVersionId: integer
(int64)
Title:
Territory Version IDThe unique identifier of the territory version. -
TerrResourceId: integer
(int64)
Title:
Territory Resource IDThe unique identifier of the territory resource. -
UniqueTerritoryNumber: string
Title:
Unique Territory NumberMaximum Length:30The unique territory number of the territory team member.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : territories-TerritoryRule-item-response
Type:
Show Source
object-
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:255The user who created the territory rule. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueThe date the territory rule was created. -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:trueThe date the territory rule was last updated. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:255The user who last updated the territory rule. -
LastUpdateLogin: string
Title:
Last Update LoginRead Only:trueMaximum Length:255The login of the user who last updated the territory rule. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
RuleNumber: integer
(int64)
Title:
Coverage NumberThe coverage number for the territory. -
RuleOperatorCode: string
Title:
Customer Coverage CodeMaximum Length:30Default Value:INCLUSIONThe code for identifying whether the coverage adds to or removes from the territory's jurisdiction. The accepted values are: EXCLUSION (for rule type EXCLUSION and PARTNER_EXCLUSION) and INCLUSION (for all other rule types, such as REGULAR, INCLUSION, PARTNER_REGULAR, PARTNER_INCLUSION, and INHERITANCE_OVERRIDE). -
RuleTypeCode: string
Title:
CoverageMaximum Length:30Default Value:REGULARThe code for the territory coverage type. If the territory coverage model is sales account centric, the accepted values are: -REGULAR (for coverage based on sales account dimensionality or named accounts) -INCLUSION (for manually included account coverage) -EXCLUSION (for manually excluded account coverage) If the territory coverage model is partner centric, the accepted values are: -PARTNER_REGULAR (for coverage based on partner dimensionality) -PARTNER_INCLUSION (for manually included partner coverage) -PARTNER_EXCLUSION (for manually excluded partner coverage) In case of inheritance, if the coverage is for a recipient territory, then the accepted value is INHERITANCE_OVERRIDE which indicates that the coverage overrides some of the inherited dimensionality. -
TerritoryRuleBoundary1: array
Rule Boundaries
Title:
Rule BoundariesThe rule boundaries resource is used to view the rule boundaries associated with a sales territory. The equivalent functional term for rule boundary is coverage dimension. The rule boundaries object contains records for each of the dimensions defined for a given territory coverage. -
TerritoryVersionId: integer
(int64)
Title:
Territory NumberThe unique identifier of the territory version. -
TerrRuleId: integer
(int64)
Title:
Coverage IDThe unique identifier of the territory rule.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : Rule Boundaries
Type:
arrayTitle:
Rule BoundariesThe rule boundaries resource is used to view the rule boundaries associated with a sales territory. The equivalent functional term for rule boundary is coverage dimension. The rule boundaries object contains records for each of the dimensions defined for a given territory coverage.
Show Source
Nested Schema : territories-TerritoryRule-TerritoryRuleBoundary1-item-response
Type:
Show Source
object-
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64The user who created the territory rule boundary. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueThe date the territory rule boundary was created. -
Dimension: string
Title:
DimensionRead Only:trueMaximum Length:60The name of the dimension. -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:trueThe date the territory rule boundary was last updated. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64The user who last updated the territory rule boundary. -
LastUpdateLogin: string
Title:
Last Update LoginRead Only:trueMaximum Length:32The login of the user who last updated the territory rule boundary. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
TerrDimensionCode: string
Title:
DimensionMaximum Length:5The code indicating the territory dimension, such as Geo for Geography Dimension, Prod for Product Dimension, and so on. -
TerritoryRuleBndryValue1: array
Rule Boundary Values
Title:
Rule Boundary ValuesThe rule boundary values resource is used to view the rule boundary values associated with a sales territory. The equivalent functional term for rule boundary value is coverage dimension member. The rule boundary values object contains records for the dimension members for each coverage dimension. -
TerrRuleBoundaryId: integer
(int64)
Title:
Territory Dimension IDThe unique identifier of the territory rule boundary. -
TerrRuleId: integer
(int64)
Title:
Territory NumberThe identifier of the territory rule.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : Rule Boundary Values
Type:
arrayTitle:
Rule Boundary ValuesThe rule boundary values resource is used to view the rule boundary values associated with a sales territory. The equivalent functional term for rule boundary value is coverage dimension member. The rule boundary values object contains records for the dimension members for each coverage dimension.
Show Source
Nested Schema : territories-TerritoryRule-TerritoryRuleBoundary1-TerritoryRuleBndryValue1-item-response
Type:
Show Source
object-
AddrElementAttribute1: string
Title:
Additional Attribute 1Maximum Length:150Additional address element to support flexible address format. -
AddrElementAttribute2: string
Title:
Additional Attribute 2Maximum Length:150Additional address element to support flexible address format. -
AddrElementAttribute3: string
Title:
Additional Attribute 3Maximum Length:150Additional address element to support flexible address format. -
AddrElementAttribute4: string
Title:
Additional Attribute 4Maximum Length:150Additional address element to support flexible address format. -
AddrElementAttribute5: string
Title:
Additional Attribute 5Maximum Length:150Additional address element to support flexible address format. -
AddressCity: string
Title:
CityMaximum Length:60City. -
AddressCountry: string
Title:
CountryMaximum Length:2Country. -
AddressCounty: string
Title:
CountyMaximum Length:60County. -
AddressPostalCode: string
Title:
Postal CodeMaximum Length:60Postal Code. -
AddressProvince: string
Title:
ProvinceMaximum Length:60Province. -
AddressState: string
Title:
StateMaximum Length:60State. -
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64The user who created the territory rule boundary value. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueThe date the territory rule boundary value was created. -
DimensionMember: string
The name of the territory dimension member.
-
DimensionMemberHigh: string
Title:
Territory Dimension Member HighRead Only:trueMaximum Length:360The name of the territory dimension member with a high sequence number. -
IncludeHierarchyFlag: boolean
Title:
Include HierarchyMaximum Length:1Indicates whether the dimension member is included along with its hierarchy or not. The default value is true. -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:trueThe date the territory rule boundary value was last updated. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64The user who last updated the territory rule boundary value. -
LastUpdateLogin: string
Title:
Last Update LoginRead Only:trueMaximum Length:32The login of the user who last updated the territory rule boundary value. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
TerrDimensionCode: string
Title:
DimensionMaximum Length:5The code indicating the territory dimension. For example, AcTyp, Acct, Aux1, Aux2, Aux3, BUnit, CSize, Geo, Indst, OrgTp, Prod, Prtnr, or SChnl. -
TerrDimHighIntgId: string
Title:
Dimension Value RangeMaximum Length:80The unique identifier of the common member of Oracle Business Intelligence (OBI), Territory Management, and Cube with a high sequence number. -
TerrDimIntgId: string
Title:
Dimension ValueMaximum Length:80The unique identifier of the common member of Oracle Business Intelligence (OBI), Territory Management, and Cube. -
TerrRuleBndryValueId: integer
(int64)
Title:
Territory Dimension Member IDThe unique identifier of the territory rule boundary value. -
TerrRuleBoundaryId: integer
(int64)
Title:
Territory NumberThe identifier of the territory rule boundary.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Links
- EnabledTypeCodesViewAccessor
-
Parameters:
- finder:
LookupTypeActiveEnabledOrBindCodeFinder%3BBindLookupType%3DMOT_TERRITORY_TYPE%2CBindLookupCode%3D{TypeCode}
The list of values for the territory type, such as Prime or Overlay.
The following properties are defined on the LOV link relation:- Source Attribute: TypeCode; Target Attribute: LookupCode
- Display Attribute: Meaning
- finder:
- ExtendedResourcePickerViewAccessor
-
Operation: /crmRestApi/resources/11.13.18.05/resourcesThe name of the territory owner.
The following properties are defined on the LOV link relation:- Source Attribute: Owner; Target Attribute: ResourceName
- Display Attribute: ResourceName, PrimaryPhoneNumber, EmailAddress, OrganizationName, RoleName, ReportsTo
- LookupYesNoViewAccessor
-
Parameters:
- finder:
LookupTypeFinder%3BBindLookupType%3DYES_NO
The list of values to indicate if the forecast for the territory is made at the parent territory level. The valid values are Yes and No.
The following properties are defined on the LOV link relation:- Source Attribute: ForecastedByParentTerritoryFlag; Target Attribute: LookupCode
- Display Attribute: Meaning
- finder:
- PartnerPickerPVOViewAccessor
-
The list of values for the name of the territory partner. The territory partner identifies the partner organization associated with the territory when the territory type is Partner.
The following properties are defined on the LOV link relation:- Source Attribute: PartnerName; Target Attribute: PartyName
- Display Attribute: PartyName
- TerritoryFunctionViewAccessor
-
Parameters:
- finder:
LookupTypeActiveEnabledOrBindCodeFinder%3BBindLookupType%3DORA_MOT_TERRITORY_FUNCTION%2CBindLookupCode%3D{TerritoryFunctionCode}
The list of values for the territory function. The territory function represents the purpose or role of the territory.
The following properties are defined on the LOV link relation:- Source Attribute: TerritoryFunctionCode; Target Attribute: LookupCode
- Display Attribute: Meaning
- finder:
- TerritoryLineOfBusiness
-
Operation: /crmRestApi/resources/11.13.18.05/territories/{TerritoryVersionId}/child/TerritoryLineOfBusinessParameters:
- TerritoryVersionId:
$request.path.TerritoryVersionId
The line of business resource is used to view the lines of business associated with a sales territory. A line of business is a general term that describes the products or services offered by the company or organization. The line of business object contains all lines of business for historical, active, and draft territory versions. It is optional for a sales territory to have associated lines of business. - TerritoryVersionId:
- TerritoryResource
-
Operation: /crmRestApi/resources/11.13.18.05/territories/{TerritoryVersionId}/child/TerritoryResourceParameters:
- TerritoryVersionId:
$request.path.TerritoryVersionId
The resources resource is used to view the resources, such as owner or sales people associated with a sales territory. The equivalent functional term for resource is team member. The resources object contains all team members for historical, active, and draft territory versions. Each sales territory must have an owner, so each of the sales territory versions has at least one resource record. - TerritoryVersionId:
- TerritoryRule
-
Parameters:
- TerritoryVersionId:
$request.path.TerritoryVersionId
The rules resource is used to view the territory rules associated with a sales territory. The equivalent functional term for rule is coverage. The coverage is what identifies the scope of responsibility of the sales territory team in the market space. The rules object contains a record for each of the coverage for historical, active, and draft territory versions. A territory version may or may not have a coverage associated with it. - TerritoryVersionId:
- ValidForecastParticipationCodeViewAccessor
-
Parameters:
- finder:
LookupTypeFinder%3BBindLookupType%3DORA_MOT_TERR_ENABLE_FCASTING
The list of values for the forecast participation, such as Revenue or Nonrevenue. The territory forecast participation indicates whether the territory is being forecasted, and if yes, whether it participates in revenue forecasting, non-revenue forecasting, or both.
The following properties are defined on the LOV link relation:- Source Attribute: ForecastParticipationCode; Target Attribute: LookupCode
- Display Attribute: Meaning
- finder:
- ValidRevisionReasonViewAccessor
-
Parameters:
- finder:
LookupTypeFinder%3BBindLookupType%3DMOT_QUOTA_REASON
The list of values for the user-defined reason for revising the quota, such as Resource added, Dimension changed, and so on. The territory revision reason explains to the quota administrator the reason for revising the quota for the territory.
The following properties are defined on the LOV link relation:- Source Attribute: RevisionReason; Target Attribute: LookupCode
- Display Attribute: Meaning
- finder:
- ValidStatusCodeViewAccessor
-
Parameters:
- finder:
LookupTypeFinder%3BBindLookupType%3DMOT_TERRITORY_VERSION_STATUS
The list of values for the territory version status, such as Unpublished or Finalized.
The following properties are defined on the LOV link relation:- Source Attribute: StatusCode; Target Attribute: LookupCode
- Display Attribute: Meaning
- finder:
- ValidateCoverageModel
-
Parameters:
- finder:
LookupTypeFinder%3BBindLookupType%3DMOT_TERR_COVERAGE_MODEL
The list of values to indicate if the dimension of the territory is based on account attributes or partner attributes, such as Customer Centric or Partner Centric.
The following properties are defined on the LOV link relation:- Source Attribute: CoverageModel; Target Attribute: LookupCode
- Display Attribute: Meaning
- finder:
Examples
The following example shows how to get a territory by submitting a get request on the REST resource using cURL.
cURL Command
curl --user
sales_cloud_user https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/territories/100000015312131Example of Response Body
The following shows an example of the response body in JSON format.
{
EffectiveEndDate: "4713-01-31"
EffectiveStartDate: "2010-01-13"
Name: "APAC Sales QA Organization Type"
TerritoryVersionId: 100000015312131
OwnerResourceId: 100010032635399
ParentTerritoryId: 100000015312038
StatusCode: "FINALIZED"
TerrProposalId: 100000015312024
TerritoryId: 100000015312130
TerritoryLevel: 3
TypeCode: "PRIME"
LatestVersionFlag: true
...
}Note:
You can use any number of coverages for a territory. However, it is recommended that you limit the number of records per query to tens of thousands. For example, a query to get 50000 records can be curl -u <username:password> \ -Xhttps://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/territories?limit=50000. Additionally, you can configure an appropriate gateway timeout
in your client application when querying tens of thousands of territory
coverage records.