Results for “get_contact_preference_rec”
8 results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
The APPS.HZ_CONTACT_PREFERENCE_V2PUB package is a public, business-entity-oriented PL/SQL API within the Oracle Trading Community Architecture (TCA) product family, shipped under the HZ application. It belongs to the "Contact Preference" business entity, classified as BUSINESS_ENTITY HZ_CONTACT_PREFERENCE, and is documented as an active public API authored with AUTHID CURRENT_USER. Its lifecycle status is active, and its reference documentation is the Contact Preference APIs chapter of the Oracle Trading Community Architecture Technical Implementation Guide (120hztig.pdf).
The package exists to provide a supported, versioned programmatic interface for creating, maintaining, and retrieving contact preference records held in the TCA data model. Contact preferences capture the manner in which a contact, party, or related entity wishes to be reached — for example, preferred contact method, preference topics, and the effective dates and time windows during which contact is acceptable. By exposing these operations as public APIs rather than allowing direct DML against the underlying table, Oracle enforces validation, concurrency, and message-stack conventions required by EBS application logic.
Key Procedures and Functions
The package declares three documented public procedures and functions:
CREATE_CONTACT_PREFERENCE— Creates a new contact preference record. According to the documented argument notes, it accepts an initialization flag for the message stack (p_init_msg_list), a contact preference record argument (p_contact_preference_rec), and returns the newly generated preference identifier (x_contact_preference_id) along with a standard return status (x_return_status). Return status values follow theFND_APIconvention, includingG_RET_STS_SUCCESS.UPDATE_CONTACT_PREFERENCE— Modifies an existing contact preference record previously created through this API or otherwise present in the TCA model.GET_CONTACT_PREFERENCE_REC— Retrieves a contact preference record, populating the record structure for a supplied identifier or key so that callers may inspect current values.
The central data structure is contact_preference_rec_type, a record type declared in the package specification. Its fields include contact_preference_id, contact_level_table and contact_level_table_id (identifying the entity against which the preference is set), contact_type, preference_code, preference_topic_type, preference_topic_type_id, and preference_topic_type_code. It further carries preference_start_date and preference_end_date, hour and minute components for start and end times (preference_start_time_hr, preference_start_time_mi, preference_end_time_hr, preference_end_time_mi), interaction limits (max_no_of_interactions, max_no_of_interact_uom_code), and descriptive/audit attributes requested_by, reason_code, status, created_by_module, and application_id.
Tables Accessed
The documented table reference for this package is HZ_CONTACT_PREFERENCES, accessed through an APPS synonym. This table is the persistent store for contact preference rows. CREATE_CONTACT_PREFERENCE inserts into it and returns the generated primary key, UPDATE_CONTACT_PREFERENCE modifies existing rows, and GET_CONTACT_PREFERENCE_REC reads rows to populate the contact_preference_rec_type structure. The field names in the record type mirror the column semantics of that table, confirming a direct mapping between the API's public data structure and the underlying TCA schema object.
Usage Notes
This package is typically invoked from EBS forms, concurrent programs, and custom PL/SQL code that must maintain contact preference data without bypassing TCA business rules. It is referenced by 19 other packages within the environment, indicating that it functions as a dependency for higher-level contact center or customer data APIs.
Callers are expected to initialize the message stack via p_init_msg_list, invoke the desired procedure, and inspect x_return_status against the FND_API constants before committing. The record type contact_preference_rec_type should be populated prior to create or update calls, and the API's returned identifier used for subsequent retrieval. Direct DML against HZ_CONTACT_PREFERENCES is discouraged; the V2 public API is the supported path and aligns with the lifecycle and versioning conventions of the TCA public API set.