Search Results contact_primary_flag
Overview
ICX_SALESREP_CONTACTS_V is a database view registered under the ICX — Oracle iProcurement product family in Oracle E-Business Suite 12.1.1 and 12.2.2. Its ETRM description, "Web Customer Salesrep Contacts List View," defines its purpose precisely: it produces a flattened, denormalized list of customer contacts associated with sales representatives, intended for display within web-based (HTML/self-service) iProcurement and related e-commerce pages. Rather than requiring application code to join multiple Trading Community Architecture (TCA) entities at runtime, the view pre-composes the sales-team-to-customer-contact relationship so that a single query returns both the sales rep identity and the full contact, address, and phone attributes needed to render a list page.
The view is documented as not implemented in this database in the source ETRM excerpt, meaning it may be absent or conditionally deployed depending on the installed licensing and patch level. Its practical relevance to a search for contact_area_code is direct: the view exposes both AREA_CODE (the primary address phone area code) and CONTACT_AREA_CODE (the specific contact's phone area code), alongside the matching PHONE_NUMBER and CONTACT_PHONE_NUMBER columns.
Underlying Base Objects
The ETRM metadata lists no independently documented base tables; instead the view text reveals it is a join of two other views:
- ICX_CUSTOMER_CONTACTS_V (aliased
CUST) — supplies the customer, contact, address, and phone attribute set, including allCONTACT_*columns and the two area code columns. - AS_SALES_TEAM_DISTINCT_V (aliased
IAS) — supplies sales-team membership data such asPERSON_ID,ROW_ID,SALESFORCE_ID, and the partner/customer addressing keys.
The join predicate is a four-part correlation: the sales team row must not be a partner record (PARTNER_CUSTOMER_ID IS NULL and PARTNER_ADDRESS_ID IS NULL), and it matches the customer on CUSTOMER_ID and ADDRESS_ID. Finally, multi-org isolation is enforced through NVL(CUST.ORG_ID,-9999) = NVL(IAS.ORG_ID,-9999), a null-safe comparison that keeps contacts aligned to the correct operating unit.
Key Columns
Beyond CONTACT_AREA_CODE, the view projects a broad contact and customer profile:
- Identity keys:
PERSON_ID,ROW_ID,SALESFORCE_ID,CUSTOMER_ID,CONTACT_ID,ADDRESS_ID,ORG_ID. - Customer/address:
CUSTOMER_NAME,CUSTOMER_NUMBER,ADDRESS1–4,CITY,STATE,POSTAL_CODE,COUNTRY, plus bill-to/ship-to/market/key-account flags. - Contact details:
FULL_NAME,FIRST_NAME,LAST_NAME,TITLE,JOB_TITLE,EMAIL_ADDRESS,SALUTATION,DEPARTMENT. - Phone:
AREA_CODE,PHONE_NUMBER,EXTENSIONand the parallelCONTACT_AREA_CODE,CONTACT_PHONE_NUMBER,CONTACT_EXTENSION,CONTACT_PRIMARY_FLAGset. - Commercial attributes:
PAYMENT_TERM_ID,FREIGHT_TERM,SHIP_VIA,TAX_CODE,NET_WORTH,NUM_OF_EMPLOYEES,FISCAL_YEAREND_MONTH.
Common Use Cases and Queries
Typical uses include building sales-rep contact directories, confirming which contact phone to dial for a given customer address, and feeding iProcurement supplier/customer list pages. To retrieve contact area codes for a specific customer:
SELECT CUSTOMER_NAME, FULL_NAME, CONTACT_AREA_CODE,
CONTACT_PHONE_NUMBER, CONTACT_EXTENSION
FROM ICX_SALESREP_CONTACTS_V
WHERE CUSTOMER_ID = :p_customer_id
AND NVL(CONTACT_PRIMARY_FLAG,'N') = 'Y';
To list all contacts handled by a sales representative within one operating unit:
SELECT PERSON_ID, SALESFORCE_ID, CUSTOMER_NUMBER,
FULL_NAME, AREA_CODE, CONTACT_AREA_CODE
FROM ICX_SALESREP_CONTACTS_V
WHERE PERSON_ID = :p_person_id
AND ORG_ID = :p_org_id
ORDER BY CUSTOMER_NAME, LAST_NAME;
Because the view is documented as not necessarily implemented at every site, developers should verify its existence in ALL_VIEWS before relying on it, and should treat the CONTACT_AREA_CODE versus AREA_CODE distinction carefully—the former belongs to the contact's own phone record, the latter to the address-level phone.
-
View: ICX_SALESREP_CONTACTS_V
12.1.1
product: ICX - Oracle iProcurement , description: Web Customer Salesrep Contacts List View , implementation_dba_data: Not implemented in this database ,
-
View: ICX_SALESREP_CONTACTS_V
12.2.2
product: ICX - Oracle iProcurement , description: Web Customer Salesrep Contacts List View , implementation_dba_data: Not implemented in this database ,
-
View: HZ_ORG_CONTACTS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AR.HZ_ORG_CONTACTS_V, object_name:HZ_ORG_CONTACTS_V, status:VALID, product: AR - Receivables , implementation_dba_data: APPS.HZ_ORG_CONTACTS_V ,
-
View: HZ_ORG_CONTACTS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AR.HZ_ORG_CONTACTS_V, object_name:HZ_ORG_CONTACTS_V, status:VALID, product: AR - Receivables , implementation_dba_data: APPS.HZ_ORG_CONTACTS_V ,
-
PACKAGE: APPS.CSC_SERVICE_REQUEST_PVT
12.1.1
-
VIEW: APPS.HZ_ORG_CONTACTS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AR.HZ_ORG_CONTACTS_V, object_name:HZ_ORG_CONTACTS_V, status:VALID,
-
VIEW: APPS.HZ_ORG_CONTACTS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AR.HZ_ORG_CONTACTS_V, object_name:HZ_ORG_CONTACTS_V, status:VALID,
-
PACKAGE: APPS.CSC_SERVICE_REQUEST_PVT
12.2.2
-
View: ICX_CUSTOMER_CONTACTS_V
12.2.2
product: ICX - Oracle iProcurement , description: Web Customers Salesrep Customer Contacts List View , implementation_dba_data: Not implemented in this database ,
-
View: ICX_CUSTOMER_CONTACTS_V
12.1.1
product: ICX - Oracle iProcurement , description: Web Customers Salesrep Customer Contacts List View , implementation_dba_data: Not implemented in this database ,
-
View: ICX_CUSTOMER_ACCOUNT_V
12.1.1
product: ICX - Oracle iProcurement , description: Web Store Customer Account View , implementation_dba_data: Not implemented in this database ,
-
View: ICX_CUSTOMER_ACCOUNT_V
12.2.2
product: ICX - Oracle iProcurement , description: Web Store Customer Account View , implementation_dba_data: Not implemented in this database ,
-
eTRM - AR Tables and Views
12.1.1
description: Territory information ,
-
eTRM - AR Tables and Views
12.2.2
description: Territory information ,