October 31, 2024

4 thoughts on “Synchronize Email Address between User and HR Employee

  1. The solution that I use is more functional and tedious , after updating user email addy in HR I go to Sysadmin , remove the HR user from account and then re-assign
    Its a wok arround

    1. Hey Richard, long time no see! Yes what you’re telling is a workaround. After removing the HR record from the user and re-adding it again EBS will derive the record from WF_LOCAL_ROLES and HR resulting in the new email to be assigned to the user record. The updates mentioned are usefull when doing mass updates in HR or, like I did for a client, when building an interface from an external HR system and creating and updating HR records through API’s. In that case it happened email adresses were updated which was also needed on the assigned user record. Nice to see you’re reading my blog 😀

  2. 1. per_all_people_f is a date tracked table so there can be multiple records for each employee, with effective start/end dates. the cursor should be modified to get only the latest.
    Add to WHERE clause: AND pap.effective_end_date > SYSDATE

    2. The procedure needs a FOR…LOOP; the current OPEN…FETCH will update one USER record only.

    1. Hi Venkat, you’re right about that. For my interface date tracking the email address was not relevant as we were updating email addresses for all records despite the fact they are date tracked or not. When not doing this the changes you propose are a great addition. Thanks for that!

Leave a Reply

Your email address will not be published. Required fields are marked *