Search Results aml_interaction_leads_pkg




Overview

The APPS.AML_INTERACTION_LEADS_PKG package is a PL/SQL database object within the Oracle E-Business Suite (EBS) 12.1.1 and 12.2.2 environments, residing in the APPS schema. Its status is VALID, indicating that the package compiles and is fully operational within the database instance. The package belongs to the Oracle Advanced Marketing (AML) product family, which provides customer interaction and lead management capabilities. In the business context, this package serves as a low-level data access layer for managing records related to interaction leads—entities that capture prospective customer interest generated through marketing campaigns, inbound inquiries, or other interaction channels. The package encapsulates the core Data Manipulation Language (DML) operations required to maintain the lifecycle of these lead records, thereby ensuring consistent data handling across the application. It is classified under the API classification OTHER, reflecting its role as a supporting internal utility rather than a public, documented application programming interface.

Key Procedures and Functions

The ETRM metadata documents four public procedures within this package. Each serves a distinct role in the record lifecycle management of interaction leads:

  • INSERT_ROW — Creates a new interaction lead record in the underlying database tables. This procedure is invoked when a new lead is captured or generated by the marketing system.
  • UPDATE_ROW — Modifies an existing interaction lead record. This is typically called when lead details change, such as status updates, reassignment, or enrichment of lead data.
  • DELETE_ROW — Removes an interaction lead record from the database. This procedure supports data cleanup, archiving workflows, or the removal of invalid or duplicate leads.
  • LOCK_ROW — Acquires a lock on a specific interaction lead record, preventing concurrent modifications. This is essential for maintaining data integrity during transactional operations where multiple users or processes might attempt to update the same lead simultaneously.

These procedures form a standard CRUD (Create, Read, Update, Delete) and locking interface, although no read (SELECT) procedure is documented in the provided metadata. The absence of parameter lists in the metadata means the exact signatures are not reproduced here; however, their naming and purpose conform to common Oracle EBS package design patterns.

Tables Accessed

The package references two tables through APPS synonyms: AML_INTERACTION_LEADS and AML_INTERACTION_LEADS_S. The primary table, AML_INTERACTION_LEADS, stores the transactional lead data, including attributes such as lead source, contact information, status, and ownership. The secondary table, AML_INTERACTION_LEADS_S, is likely a sequence or supporting table used for primary key generation or audit tracking, following the common EBS naming convention where the _S suffix denotes a sequence table. The procedures within the package perform the necessary INSERT, UPDATE, DELETE, and LOCK operations against these tables to persist and manage lead records.

Usage Notes

This package is an internal component of the Oracle Advanced Marketing module. According to the dependency metadata, it is referenced by exactly one other package: AML_INTERACTION_ENGINE. This indicates that the interaction engine—which likely orchestrates the processing of marketing interactions and the generation of leads—calls AML_INTERACTION_LEADS_PKG to perform its DML operations. Consequently, the package is not typically invoked directly by end users or external custom code. Instead, it is invoked indirectly through the AML_INTERACTION_ENGINE during runtime processing, such as when a marketing campaign captures a response or when an inbound interaction is converted into a lead. In Oracle EBS 12.1.1 and 12.2.2, the package resides in the APPS schema and relies on the SYS.STANDARD package, which is the default PL/SQL package available in every Oracle database session. Customizations should avoid calling this package directly, as its procedures are designed for internal use and may change without notice in future patches or upgrades. Any custom code requiring access to interaction lead data should instead use the supported public APIs or views provided by the Advanced Marketing module.