Search Results hz_relationship
Overview
JTF_PARTY_ALL_CONTACTS_V is a CRM Foundation (JTF) view owned by the APPS schema in Oracle E-Business Suite 12.1.1 and 12.2.2. Its purpose is to present all contacts defined in the Trading Community Architecture (TCA) model, using the HZ_RELATIONSHIPS table as the driving table. The view exposes data for both the subject party and the object party of a relationship, effectively allowing a caller to resolve the "who is the contact of whom" question without navigating the full TCA relationship schema.
Because TCA models contacts as party-to-party relationships rather than as records stored in a dedicated contacts table, this view is the standard reporting and integration access point for contact data. It is widely referenced by CRM Foundation components and by downstream modules that require a flat, denormalized representation of contacts. The view is documented as not joining to HZ_ORG_CONTACTS, which distinguishes it from views that rely on the legacy organization-contact association. Applications requiring the org-contact linkage must obtain it separately.
Underlying Base Objects
Per the ETRM metadata, the view is defined over four referenced base objects, all accessed through synonyms in the APPS schema:
- HZ_RELATIONSHIPS — the driving table, aliased as REL. It supplies the relationship identity, type, direction, start and end dates, and the subject and object identifiers.
- HZ_PARTIES — joined twice, once as PARTY_SUBJECT (on REL.SUBJECT_ID = PARTY_SUBJECT.PARTY_ID) and once as PARTY_OBJECT (on PARTY_OBJECT.PARTY_ID = REL.OBJECT_ID). These joins supply the names, numbers, and person-level attributes.
- HZ_RELATIONSHIP_TYPES — aliased as RELTYPE, joined to REL on relationship type.
- HZ_CODE_ASSIGNMENTS — joined to the relationship type to constrain the result set to the relationship type group that represents contacts.
The view applies several restrictions in its WHERE clause: DIRECTIONAL_FLAG must equal 'F', both SUBJECT_TABLE_NAME and OBJECT_TABLE_NAME must equal 'HZ_PARTIES', and an EXISTS subquery requires a code assignment with CLASS_CATEGORY = 'RELATIONSHIP_TYPE_GROUP' and CLASS_CODE = 'PARTY_REL_GRP_CONTACTS'. This last predicate is the mechanism that filters the universe of relationships down to those classified as contacts, rather than permitting arbitrary party relationships to appear. Because the view is not joined to HZ_ORG_CONTACTS, it is relationship-centric; organization contact assignments maintained separately are not reflected here.
Key Columns
The view exposes identity and descriptive attributes for both sides of each contact relationship, together with the relationship metadata itself. Important columns include:
- OBJECT_PARTY_ID, OBJECT_PARTY_NAME, OBJECT_PARTY_NUMBER — identify the object party of the relationship, typically the organization or party to which the contact belongs.
- SUBJECT_PARTY_ID, SUBJECT_PARTY_NUMBER, SUBJECT_PARTY_NAME — identify the subject party, typically the contact person.
- RELATIONSHIP_ID, RELATIONSHIP_TYPE, PARTY_ID, SUBJECT_ID — carry the underlying relationship key, its type, and the raw subject identifier.
- START_DATE, END_DATE — the effective period of the relationship, enabling point-in-time and as-of reporting.
- VALIDATED_FLAG — indicates whether the subject party record has been validated.
- Person name components — PERSON_PRE_NAME_ADJUNCT, PERSON_FIRST_NAME, PERSON_MIDDLE_NAME, PERSON_LAST_NAME, PERSON_NAME_SUFFIX, PERSON_TITLE, PERSON_ACADEMIC_TITLE, PERSON_PREVIOUS_LAST_NAME, and KNOWN_AS.
- Identification attributes — PERSON_IDEN_TYPE, PERSON_IDENTIFIER, JGZZ_FISCAL_CODE, TAX_NAME, TAX_REFERENCE.
- SUBJECT_EMAIL_ADDRESS — the email address of the subject party, sourced from HZ_PARTIES.
Common Use Cases and Queries
Typical scenarios include contact list reporting, CRM integration extracts, customer 360 views, and data migration validation where contact relationships must be enumerated. A common query retrieves all contacts associated with a given object party:
SELECT subject_party_id, subject_party_name, object_party_id, object_party_name, relationship_type, start_date, end_date FROM jtf_party_all_contacts_v WHERE object_party_id = :p_party_id;SELECT subject_party_id, subject_party_name, subject_email_address FROM jtf_party_all_contacts_v WHERE subject_party_number = :p_party_number;SELECT object_party_id, COUNT(subject_party_id) FROM jtf_party_all_contacts_v WHERE (end_date IS NULL OR end_date >= SYSDATE) GROUP BY object_party_id;
When the organization-contact relationship data is also required, the view must be supplemented with a separate join to HZ_ORG_CONTACTS, since the documented view definition deliberately omits that join.
-
View: JTF_PARTY_ALL_CONTACTS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:JTF.JTF_PARTY_ALL_CONTACTS_V, object_name:JTF_PARTY_ALL_CONTACTS_V, status:VALID, product: JTF - CRM Foundation , description: View all contacts, using hz_relationship table as the driving table. The view expose data for subject and object party. Please note that the view does not join with hz_org_contacts. , implementation_dba_data: APPS.JTF_PARTY_ALL_CONTACTS_V ,
-
VIEW: APPS.POS_SUPPLIER_USERS_V
12.1.1
owner:APPS, object_type:VIEW, object_name:POS_SUPPLIER_USERS_V, status:VALID,
-
VIEW: APPS.QA_USER_GROUP_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:QA.QA_USER_GROUP_V, object_name:QA_USER_GROUP_V, status:VALID,
-
View: JTF_PARTY_ALL_CONTACTS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:JTF.JTF_PARTY_ALL_CONTACTS_V, object_name:JTF_PARTY_ALL_CONTACTS_V, status:VALID, product: JTF - CRM Foundation , description: View all contacts, using hz_relationship table as the driving table. The view expose data for subject and object party. Please note that the view does not join with hz_org_contacts. , implementation_dba_data: APPS.JTF_PARTY_ALL_CONTACTS_V ,
-
VIEW: APPS.POS_SUPPLIER_USERS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:POS.POS_SUPPLIER_USERS_V, object_name:POS_SUPPLIER_USERS_V, status:VALID,
-
View: JTF_TASK_PARTY_CONTACTS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:JTF.JTF_TASK_PARTY_CONTACTS_V, object_name:JTF_TASK_PARTY_CONTACTS_V, status:VALID, product: JTF - CRM Foundation , description: View all contacts, using hz_relationship table as the driving table. The view expose data for subject and object party. Please note that the view does not join with hz_org_contacts , implementation_dba_data: APPS.JTF_TASK_PARTY_CONTACTS_V ,
-
VIEW: APPS.QA_USER_GROUP_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:QA.QA_USER_GROUP_V, object_name:QA_USER_GROUP_V, status:VALID,
-
View: JTF_TASK_PARTY_CONTACTS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:JTF.JTF_TASK_PARTY_CONTACTS_V, object_name:JTF_TASK_PARTY_CONTACTS_V, status:VALID, product: JTF - CRM Foundation , description: View all contacts, using hz_relationship table as the driving table. The view expose data for subject and object party. Please note that the view does not join with hz_org_contacts , implementation_dba_data: APPS.JTF_TASK_PARTY_CONTACTS_V ,
-
VIEW: APPS.JTF_TASK_PARTY_CONTACTS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:JTF.JTF_TASK_PARTY_CONTACTS_V, object_name:JTF_TASK_PARTY_CONTACTS_V, status:VALID,
-
VIEW: APPS.JTF_TASK_PARTY_CONTACTS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:JTF.JTF_TASK_PARTY_CONTACTS_V, object_name:JTF_TASK_PARTY_CONTACTS_V, status:VALID,
-
VIEW: APPS.JTF_PARTY_ALL_CONTACTS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:JTF.JTF_PARTY_ALL_CONTACTS_V, object_name:JTF_PARTY_ALL_CONTACTS_V, status:VALID,
-
TABLE: AR.HZ_IMP_RELSHIPS_INT
12.1.1
owner:AR, object_type:TABLE, fnd_design_data:AR.HZ_IMP_RELSHIPS_INT, object_name:HZ_IMP_RELSHIPS_INT, status:VALID,
-
VIEW: APPS.JTF_PARTY_ALL_CONTACTS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:JTF.JTF_PARTY_ALL_CONTACTS_V, object_name:JTF_PARTY_ALL_CONTACTS_V, status:VALID,
-
APPS.IGS_SC_BULK_ASSIGN SQL Statements
12.1.1
-
TABLE: AR.HZ_IMP_RELSHIPS_INT
12.2.2
owner:AR, object_type:TABLE, fnd_design_data:AR.HZ_IMP_RELSHIPS_INT, object_name:HZ_IMP_RELSHIPS_INT, status:VALID,
-
PACKAGE: APPS.HZ_HIERARCHY_V2PUB
12.2.2
-
PACKAGE: APPS.HZ_HIERARCHY_V2PUB
12.1.1
-
PACKAGE: APPS.HZ_RELATIONSHIP_V2PUB
12.1.1
-
PACKAGE: APPS.HZ_RELATIONSHIP_V2PUB
12.2.2
-
PACKAGE BODY: APPS.IGS_SC_BULK_ASSIGN
12.1.1
-
Lookup Type: BUSINESS_ENTITY
12.1.1
product: FND - Application Object Library , meaning: Business Entity(1) ,
-
Lookup Type: BUSINESS_ENTITY
12.2.2
product: FND - Application Object Library , meaning: Business Entity(1) ,
-
APPS.IBE_WORKFLOW_PVT dependencies on HZ_PARTIES
12.2.2
-
APPS.IBE_WORKFLOW_PVT dependencies on HZ_PARTIES
12.1.1
-
eTRM - POS Tables and Views
12.2.2
description: This table is used during release 11i to release 12 upgrade. It stores vendor_ids of vendors who are considered in iSupplier Portal TCA Supplier upgrade scripts. ,
-
PACKAGE BODY: APPS.IBE_WORKFLOW_PVT
12.2.2
-
PACKAGE BODY: APPS.IBE_WORKFLOW_PVT
12.1.1
-
eTRM - QA Tables and Views
12.1.1
description: Define information on applicability of a collection plan for a Quality Collection transaction ,
-
eTRM - QA Tables and Views
12.2.2
description: Define information on applicability of a collection plan for a Quality Collection transaction ,
-
eTRM - JTF Tables and Views
12.1.1
description: Interface table to store data that needs to be displayed in Excel ,
-
eTRM - JTF Tables and Views
12.2.2
description: Interface table to store data that needs to be displayed in Excel ,
-
eTRM - AR Tables and Views
12.1.1
description: Territory information ,
-
eTRM - AR Tables and Views
12.2.2
description: Territory information ,