Search Results ams_relationship_id
Overview
AMS_ACCT_SHIP_TO_CONTACT_V is a Marketing (AMS) module view that returns the primary ship-to contact associated with a customer account. As stated in the ETRM metadata, the view is designed to expose the primary ship-to contact for an account and is primarily used for list generation within Oracle Marketing. Because list generation and campaign targeting frequently require identifying a single, authoritative contact per account, this view consolidates the relevant party, account role, and responsibility data into one denormalized row per qualifying ship-to contact.
The view is documented in the ETRM repository for Oracle EBS 12.1.1 and 12.2.2 and is marked as "Not implemented in this database." This means the view definition is catalogued for reference purposes but may not be deployed in every environment. The absence of any documented referenced base objects in the metadata record is consistent with this status; the authoritative object set must instead be read directly from the view's SQL text.
Underlying Base Objects
Although the ETRM metadata lists no referenced base objects, the view text reveals that it is defined over six TCA (Trading Community Architecture) tables joined together:
- HZ_CUST_ACCOUNT_ROLES (R) — supplies the customer account role row, including CUST_ACCOUNT_ROLE_ID, PRIMARY_FLAG, ROLE_TYPE, and role state dates.
- HZ_CUST_ACCOUNTS (A) — the customer account header, used to filter on STATUS = 'A'.
- HZ_PARTIES (P) — the party (person or organization) record containing name and identifier attributes; filtered on STATUS = 'A'.
- HZ_PARTY_RELATIONSHIPS (PR) — links the account's party to the contact party; filtered on CONTENT_SOURCE_TYPE = 'USER_ENTERED' and STATUS = 'A'.
- HZ_ORG_CONTACTS (C) — the organization contact record tying the relationship to a contact; filtered on STATUS = 'A'.
- HZ_ROLE_RESPONSIBILITY (RESP) — the responsibility assignment for the account role, filtered to PRIMARY_FLAG = 'Y' and RESPONSIBILITY_TYPE = 'SHIP_TO'.
Joins are driven through CUST_ACCOUNT_ID, PARTY_ID, SUBJECT_ID, and PARTY_RELATIONSHIP_ID, with R.CUST_ACCT_SITE_ID IS NULL ensuring the role applies at the account level rather than a specific site.
Key Columns
- AMS_CONTACT_ID — aliased from PR.PARTY_ID; the contact identifier used by Marketing.
- CONTACT_PARTY_ID — aliased from PR.SUBJECT_ID; the party identifier of the contact.
- ACCT_ID — the customer account identifier (R.CUST_ACCOUNT_ID).
- CUST_ACCOUNT_ROLE_ID / CUST_ACCT_SITE_ID — the role and (null) site context for the account.
- CURRENT_ROLE_STATE and CURRENT_ROLE_STATE_EFFECTIVE — the current status of the account role and its effective date.
- PRIMARY_FLAG, ROLE_TYPE, BEGIN_DATE, END_DATE — role-level attributes describing whether the role is primary and its validity window.
- PARTY_NUMBER, PARTY_NAME, PARTY_TYPE — core party identification attributes.
- Person name columns — 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 support personalized list output.
- PERSON_IDEN_TYPE and PERSON_IDENTIFIER — identification details for the contact person.
- RESPONSIBILITY_TYPE — the role responsibility, restricted to 'SHIP_TO' by the view definition.
- AMS_RELATIONSHIP_ID / RELATIONSHIP_PARTY_ID — aliases from PR.PARTY_RELATIONSHIP_ID and PR.PARTY_ID, linking the contact back to its relationship record.
Common Use Cases and Queries
The view is typically consumed to drive Marketing list generation, campaign audience selection, and contact selection for accounts where a primary ship-to contact is required.
SELECT ams_contact_id,
contact_party_id,
acct_id,
party_name,
person_first_name,
person_last_name
FROM ams_acct_ship_to_contact_v
WHERE acct_id = :p_account_id;
For bulk list generation, consumers join the view to account or campaign staging tables using ACCT_ID or AMS_CONTACT_ID, optionally filtering on CURRENT_ROLE_STATE and BEGIN_DATE/END_DATE to restrict results to currently effective roles. Because the view already enforces STATUS = 'A' on parties and accounts, PRIMARY_FLAG = 'Y', and RESPONSIBILITY_TYPE = 'SHIP_TO', callers need not re-apply those predicates in most reporting scenarios.
-
View: AMS_ACCT_SHIP_TO_CONTACT_V
12.1.1
product: AMS - Marketing , description: This view returns primary ship to contact for an account . Used for list generation. , implementation_dba_data: Not implemented in this database ,
-
View: AMS_ACCT_BILL_TO_CONTACT_V
12.1.1
product: AMS - Marketing , description: This view returns primary bill to contact for an account . Used for list generation. , implementation_dba_data: Not implemented in this database ,
-
View: AMS_ACCT_SITE_CONTACT_V
12.1.1
product: AMS - Marketing , description: This view returns all account site contacts . Used for list generation. , implementation_dba_data: Not implemented in this database ,
-
View: AMS_ACCTSITE_BILL_TO_CONTACT_V
12.1.1
product: AMS - Marketing , description: This view returns primary bill to contact for an account site. Used for list generation. , implementation_dba_data: Not implemented in this database ,
-
View: AMS_ACCTSITE_BILL_TO_CONTACT_V
12.2.2
product: AMS - Marketing , description: This view returns primary bill to contact for an account site. Used for list generation. , implementation_dba_data: Not implemented in this database ,
-
View: AMS_ACCTSITE_SHIP_TO_CONTACT_V
12.1.1
product: AMS - Marketing , description: This view returns primary ship to contact for an account site. Used for list generation. , implementation_dba_data: Not implemented in this database ,
-
View: AMS_ACCT_CONTACT_V
12.1.1
product: AMS - Marketing , description: This view returns all account contacts . Used for list generation. , implementation_dba_data: Not implemented in this database ,
-
View: AMS_ACCT_SHIP_TO_CONTACT_V
12.2.2
product: AMS - Marketing , description: This view returns primary ship to contact for an account . Used for list generation. , implementation_dba_data: Not implemented in this database ,
-
View: AMS_ACCT_BILL_TO_CONTACT_V
12.2.2
product: AMS - Marketing , description: This view returns primary bill to contact for an account . Used for list generation. , implementation_dba_data: Not implemented in this database ,
-
View: AMS_ACCT_SITE_CONTACT_V
12.2.2
product: AMS - Marketing , description: This view returns all account site contacts . Used for list generation. , implementation_dba_data: Not implemented in this database ,
-
View: AMS_ACCT_CONTACT_V
12.2.2
product: AMS - Marketing , description: This view returns all account contacts . Used for list generation. , implementation_dba_data: Not implemented in this database ,
-
View: AMS_ACCTSITE_SHIP_TO_CONTACT_V
12.2.2
product: AMS - Marketing , description: This view returns primary ship to contact for an account site. Used for list generation. , implementation_dba_data: Not implemented in this database ,
-
View: AMS_P_CONTACT_V
12.1.1
product: AMS - Marketing , description: This view returns all Contacts for an Organization. Used for list generation. , implementation_dba_data: Not implemented in this database ,
-
View: AMS_P_PARTY_CONTACT_V
12.2.2
product: AMS - Marketing , description: This view returns all party contacts . Used for list generation. , implementation_dba_data: Not implemented in this database ,
-
View: AMS_P_PARTY_CONTACT_V
12.1.1
product: AMS - Marketing , description: This view returns all party contacts . Used for list generation. , implementation_dba_data: Not implemented in this database ,
-
View: AMS_IBA_EMPLOYEE_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AMS.AMS_IBA_EMPLOYEE_V, object_name:AMS_IBA_EMPLOYEE_V, status:VALID, product: AMS - Marketing , description: This view selects employee details of organizations. It is used to create segments for business tobusiness users in iMarketing. , implementation_dba_data: APPS.AMS_IBA_EMPLOYEE_V ,
-
VIEW: APPS.AMS_IBA_EMPLOYEE_V
12.1.1
-
View: AMS_IBA_EMPLOYEE_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AMS.AMS_IBA_EMPLOYEE_V, object_name:AMS_IBA_EMPLOYEE_V, status:VALID, product: AMS - Marketing , description: This view selects employee details of organizations. It is used to create segments for business tobusiness users in iMarketing. , implementation_dba_data: APPS.AMS_IBA_EMPLOYEE_V ,
-
View: AMS_P_CONTACT_V
12.2.2
product: AMS - Marketing , description: This view returns all Contacts for an Organization. Used for list generation. , implementation_dba_data: Not implemented in this database ,
-
VIEW: APPS.AMS_IBA_EMPLOYEE_V
12.2.2
-
VIEW: APPS.AMS_IBA_EMPLOYEE_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AMS.AMS_IBA_EMPLOYEE_V, object_name:AMS_IBA_EMPLOYEE_V, status:VALID,
-
VIEW: APPS.AMS_IBA_EMPLOYEE_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AMS.AMS_IBA_EMPLOYEE_V, object_name:AMS_IBA_EMPLOYEE_V, status:VALID,
-
eTRM - AMS Tables and Views
12.1.1
description: This table is used to store tracking data for web advertisement and offer type schedules ,
-
eTRM - AMS Tables and Views
12.2.2
description: This table is used to store tracking data for web advertisement and offer type schedules ,