Results for “as_lead_log”

10 results




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

Overview

The AS_LEAD_LOG table is a Sales Foundation (AS) module object within Oracle E-Business Suite that stores the change history of sales leads and opportunities. Its documented description—"Holds opportunity change history"—positions it as an audit and tracking structure that records transitions and modifications applied to lead records over their lifecycle. In EBS 12.1.1 and 12.2.2, this table supports the Sales Foundation data model, which underpins Oracle's lead-to-opportunity and opportunity management functionality shared with adjacent modules such as Oracle Sales, Telesales, and Marketing.

From a dimensional modeling perspective, the metadata's heuristic classification places AS_LEAD_LOG as satellite-leaning. This suggests the table functions most naturally as a satellite structure attached to a parent hub, which in this case is AS_LEADS_ALL. Rather than holding the authoritative attributes of a lead, AS_LEAD_LOG captures descriptive, time-varying history that elaborates on the lead entity maintained by its parent. Organizations designing analytics or integration layers around the AS schema can therefore treat this table as a subordinate detail or history table keyed by the lead's unique identifier.

Key Information Stored

The table is defined by a compact, well-scoped set of attributes. The most important documented elements are:

  • LOG_ID — The surrogate primary key, backed by the AS_LEAD_LOG_PK constraint. This is a system-generated identifier that uniquely distinguishes each history record. It carries no business meaning and should not be used as a natural identifier for the lead itself.
  • LEAD_ID — The single documented foreign key column. It references AS_LEADS_ALL and links each history row back to the specific lead or opportunity whose change is being recorded. This is the de facto business join key and the primary driver for querying the table.

Because the metadata excerpt enumerates only LOG_ID and LEAD_ID explicitly, these two columns represent the documented anchor points. In practice, a change-history table of this kind also typically records the type of change, a timestamp, and an actor reference, but the authoritative ETRM record restricts column-level detail to the two above. Analysts should confirm additional columns against the live dictionary or DBA_TAB_COLUMNS before building dependent logic.

Common Use Cases and Queries

The primary use case is auditing the evolution of a lead or opportunity: reconstructing when and how a record changed, and tracing the lifecycle of opportunities through the sales pipeline. A canonical join pattern follows the documented foreign key:

  • SELECT h.* FROM as_lead_log h WHERE h.lead_id = :lead_id; — retrieve the full change history for a single lead.
  • SELECT l.lead_id, h.log_id FROM as_lead_log h JOIN as_leads_all l ON l.lead_id = h.lead_id; — correlate leads with their logged changes for reporting.
  • SELECT lead_id, COUNT(*) FROM as_lead_log GROUP BY lead_id ORDER BY 2 DESC; — identify the most frequently modified opportunities.
  • History-join queries for point-in-time reconstruction, useful when feeding a Data Vault satellite or a slowly changing dimension in a downstream warehouse.

Reporting scenarios include sales pipeline velocity analysis, change-frequency metrics for data quality monitoring, and compliance auditing of who altered key opportunity attributes.

Related Objects

The table's dependency graph is centered on its parent relationship. The most significant related object is:

  • AS_LEADS_ALL — joined via AS_LEAD_LOG.LEAD_ID → AS_LEADS_ALL. This is both the parent entity and the source of the business join key; virtually all queries against AS_LEAD_LOG resolve through this relationship.

Beyond this documented foreign key, AS_LEAD_LOG participates in the broader Sales Foundation schema alongside lead and opportunity master tables and their associated views and concurrent programs. The AS_LEAD_LOG_PK constraint governs uniqueness on LOG_ID. Because the ETRM metadata is intentionally concise, implementers should validate any additional referencing objects against the live EBS data dictionary for the specific 12.1.1 or 12.2.2 instance. Note that the implementation flag "Not implemented in this database" indicates the object may be absent from some installations, so existence checks are advisable before deploying dependent code.