Results for “as_lead_contacts_all”

50+ results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

AS_LEAD_CONTACTS_ALL is a Sales Foundation (AS) table owned by the OSM schema in Oracle E-Business Suite 12.1.1 and 12.2.2. It stores the contacts associated with sales opportunities (leads), acting as the association layer between a lead record in AS_LEADS_ALL and the party, contact, address, and phone records that describe the individuals involved in the opportunity. Because it carries the _ALL suffix and an ORG_ID column, it is a multi-org (operating unit) enabled table.

From a Data Vault modeling perspective, the metadata classifies this object heuristically as a link table. It resolves many-to-many relationships between leads, contacts, parties, and contact points, and it carries descriptive attributes such as RANK, ROLE, and PRIMARY_CONTACT_FLAG. The physical schema is documented with 39 columns, with a surrogate primary key AS_LEAD_CONTACTS_ALL_PK on LEAD_CONTACT_ID.

Key Information Stored

The most significant columns are:

  • LEAD_CONTACT_ID — Surrogate primary key generated by the AS_LEAD_CONTACTS_ALL_PK constraint; uniquely identifies each lead-to-contact association.
  • LEAD_ID — Foreign key to AS_LEADS_ALL, identifying the parent sales opportunity.
  • CONTACT_ID — Foreign key to HZ_ORG_CONTACTS, referencing the contact person record.
  • CONTACT_PARTY_ID — Foreign key to HZ_PARTIES, identifying the contact as a TCA party.
  • CUSTOMER_ID — Foreign key to HZ_PARTIES, the customer party associated with the opportunity.
  • ADDRESS_ID — Foreign key to HZ_PARTY_SITES, the location for the contact.
  • PHONE_ID — Foreign key to HZ_CONTACT_POINTS and RA_PHONES, the phone number on record.
  • PRIMARY_CONTACT_FLAG — Indicates whether the contact is the primary contact for the lead.
  • ROLE — The functional role the contact plays in the opportunity (for example, decision maker or influencer).
  • RANK — Ordering or priority of the contact within the lead.
  • ENABLED_FLAG — Whether the association is active.
  • ORG_ID — The operating unit; part of the unique index AS_LEAD_CONTACTS_U1 (LEAD_CONTACT_ID, ORG_ID).
  • SECURITY_GROUP_ID — Foreign key to FND_SECURITY_GROUPS for data security grouping.
  • OBJECT_VERSION_NUMBER — Optimistic locking column used by the OAF/Forms layer.

The unique index AS_LEAD_CONTACTS_UK (CONTACT_ID, LEAD_ID) is a documented business-key candidate, ensuring a contact cannot be attached to the same lead twice. The surrogate PK AS_LEAD_CONTACTS_ALL_PK (LEAD_CONTACT_ID) is distinct from this business key. Standard WHO columns (CREATION_DATE, CREATED_BY, LAST_UPDATE_DATE, LAST_UPDATED_BY, LAST_UPDATE_LOGIN) and the 15 ATTRIBUTE flex columns are also present.

Common Use Cases and Queries

Typical reporting scenarios include listing all contacts for a given opportunity, identifying the primary contact, and reconciling contacts by party or customer. The most common SQL pattern joins the table to AS_LEADS_ALL on LEAD_ID:

  • SELECT lc.lead_contact_id, lc.lead_id, lc.contact_id, lc.role, lc.primary_contact_flag FROM as_lead_contacts_all lc WHERE lc.lead_id = :lead_id;
  • Join to HZ_PARTIES on CONTACT_PARTY_ID to retrieve contact names.
  • Join to HZ_PARTY_SITES on ADDRESS_ID and to HZ_CONTACT_POINTS on PHONE_ID to build contact detail reports.
  • Filter on ORG_ID to enforce operating unit security, and on ENABLED_FLAG = 'Y' to return active associations.

Because the unique index AS_LEAD_CONTACTS_U1 includes ORG_ID, queries should filter by both LEAD_CONTACT_ID and ORG_ID when using it for lookups.

Related Objects

The table sits at the center of several foreign key relationships:

  • AS_LEADS_ALL — Parent table; joined on LEAD_ID.
  • HZ_PARTIES — Referenced twice, via CONTACT_PARTY_ID and CUSTOMER_ID.
  • HZ_ORG_CONTACTS — Referenced via CONTACT_ID to obtain organization contact records.
  • HZ_PARTY_SITES — Referenced via ADDRESS_ID for contact locations.
  • HZ_CONTACT_POINTS and RA_PHONES — Referenced via PHONE_ID for telephone information.
  • FND_SECURITY_GROUPS — Referenced via SECURITY_GROUP_ID for security group resolution.

Developers and integrators should treat AS_LEAD_CONTACTS_ALL as the authoritative junction between leads and TCA party data, and use the documented foreign keys above rather than inferring alternate join paths.