This document provides an example of using the HZ_CONTACT_POINT_V2PUB API in an Oracle E-Business Suite R12.1.3 environment to mass update email addresses. The example code declares variables, initializes the Oracle Applications, runs a cursor to retrieve contact point IDs and versions to update, loops through the records to update the email address value using the API, and commits the changes.
This document provides an example of using the HZ_CONTACT_POINT_V2PUB API in an Oracle E-Business Suite R12.1.3 environment to mass update email addresses. The example code declares variables, initializes the Oracle Applications, runs a cursor to retrieve contact point IDs and versions to update, loops through the records to update the email address value using the API, and commits the changes.
Update Email Addresses posted Jun 30, 2014, 1:51 PM by Jay Tracewell Below is a working example from Oracle eBS R12.1.3 environment on using this API: DECLARE l_phone_rec HZ_CONTACT_POINT_V2PUB.phone_rec_type; l_email_rec HZ_CONTACT_POINT_V2PUB.email_rec_type; l_contact_point_rec HZ_CONTACT_POINT_V2PUB.contact_point_rec_type;
l_contact_point_type VARCHAR2(100) := 'EMAIL' ;--'PHONE'; l_primary_flag VARCHAR2(1) := 'Y'; --l_area_code HZ_CONTACT_POINTS.phone_area_code % TYPE := '953'; --l_phone_number HZ_CONTACT_POINTS.phone_number % TYPE := '9667255'; l_email HZ_CONTACT_POINTS.email_address % TYPE := '[email protected]'; l_obj_num NUMBER := 1;