Results for “contact_role_code”

12 results




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

Overview

AST_SALES_LEAD_CONTACTS_V is a TeleSales (AST) reporting view owned by the APPS schema and validated in Oracle EBS 12.1.1 and 12.2.2. It presents the contact-level detail for sales leads: each row links a sales lead to a contact party, that party's role on the lead, associated phone and e-mail contact points, organizational job information, and the underlying party relationship. The view is a denormalized, read-only projection intended for inquiry, concurrent-program extracts, and integration interfaces that require lead-contact information without joining the base tables directly.

The object is significant for the search term lead_contact_role because the role of each contact is exposed through CONTACT_ROLE_CODE and its decoded, user-facing value MEANING (aliased from AS_LOOKUPS as ROLE_LKUP). Consumers can therefore report or filter on lead contact roles without decoding lookups themselves.

Underlying Base Objects

The view is defined over seven documented base objects. The driving table is AS_SALES_LEAD_CONTACTS (referenced as the synonym LEAD_CONT), which supplies the lead-contact intersection records. Supporting objects are:

The outer join on the phone contact point means lead contacts without a phone record still appear, with phone columns null.

Key Columns

Common Use Cases and Queries

The view supports lead-contact reporting, role analysis, and data migration extracts. Typical queries include:

  • Listing all contacts for a given sales lead with their roles:
SELECT sales_lead_id, contact_party_id, person_first_name,
       person_last_name, contact_role_code, meaning
FROM   apps.ast_sales_lead_contacts_v
WHERE  sales_lead_id = :p_lead_id
AND    enabled_flag = 'Y';
  • Filtering by a specific lead contact role:
SELECT sales_lead_id, person_last_name, email_address, phone_line_type
FROM   apps.ast_sales_lead_contacts_v
WHERE  contact_role_code = :p_role_code;
  • Identifying the primary contact for each lead:
SELECT sales_lead_id, person_first_name, person_last_name
FROM   apps.ast_sales_lead_contacts_v
WHERE  primary_contact_flag = 'Y'
AND    enabled_flag = 'Y';

Because the view joins multiple HZ and lookup tables, queries should be constrained by lead, customer, or role to limit result sets. No DML is permitted against the view.