Search Results jtf_task_territory_v




Overview

APPS.JTF_TASK_TERRITORY_V is an internal view owned by the APPS schema in Oracle E-Business Suite release 12.1.1 and 12.2.2. It belongs to the JTF – CRM Foundation product family and is documented as an internal view used by the Assignment Manager. The view presents a flattened, assignment-oriented projection of task data joined to customer party site and location information, exposing territory-relevant attributes such as country, city, state, province, postal code, county, phone area code, and customer name. Its purpose is to provide the Assignment Manager with the attribute values required to evaluate territory and assignment rules against task records.

Because the view carries no user-facing application responsibility of its own, it should be treated as a supporting database object rather than a public integration interface. The inclusion of NUM_OF_EMPLOYEES, which is not derived from any of the referenced base objects, indicates that the view was designed as a fixed attribute carrier whose columns map positionally to a set of assignment criteria expected by the Assignment Manager.

Underlying Base Objects

The view is defined over the following documented objects:

The use of outer joins (+) on the party site and location relationships means task rows are retained even when no address, party site, or location record exists, producing nulls in the corresponding geographic columns.

Key Columns

  • TASK_ID — identifier of the task record from JTF_TASKS_VL.
  • PARTY_ID — the customer identifier, aliased from TASK.CUSTOMER_ID.
  • COUNTRY, CITY, STATE, PROVINCE, POSTAL_CODE, COUNTY — geographic attributes from HZ_LOCATIONS.
  • AREA_CODE — phone area code from HZ_CONTACT_POINTS.
  • COMP_NAME_RANGE — customer name obtained via the JTF_TASK_UTL.GET_CUSTOMER_NAME function.
  • NUM_OF_EMPLOYEES — exposed as a literal NULL in the view definition; despite the column name, no employee count is populated by this view.
  • TASK_TYPE_ID, TASK_STATUS_ID, TASK_PRIORITY_ID — classification identifiers for the task.
  • ATTRIBUTE1 through ATTRIBUTE15 — descriptor columns defined as NULL placeholders, preserved so the view presents a consistent attribute layout to the Assignment Manager.

Common Use Cases and Queries

The view is primarily consumed by Assignment Manager processing rather than by ad hoc reporting. Diagnostic queries are useful when validating why a task was or was not routed to a given territory.

A typical inspection query:

  • SELECT TASK_ID, PARTY_ID, COMP_NAME_RANGE, COUNTRY, CITY, STATE, PROVINCE, POSTAL_CODE, AREA_CODE FROM APPS.JTF_TASK_TERRITORY_V WHERE TASK_ID = :task_id;
  • SELECT TASK_TYPE_ID, TASK_STATUS_ID, TASK_PRIORITY_ID, COUNT(*) FROM APPS.JTF_TASK_TERRITORY_V GROUP BY TASK_TYPE_ID, TASK_STATUS_ID, TASK_PRIORITY_ID;
  • SELECT COUNT(*) FROM APPS.JTF_TASK_TERRITORY_V WHERE NUM_OF_EMPLOYEES IS NULL; — confirms the published behavior that NUM_OF_EMPLOYEES is always null in this view.

Because NUM_OF_EMPLOYEES is hard-coded to NULL, any territory rule referencing employee count must obtain that value from another source. Queries that filter or sort on this column will return no matches.