摘自:11i - 12 How To Set Email Style Preference For All Users At Once? - huak - 博客园 (cnblogs.com)
11i - 12 How To Set Email Style Preference For All Users At Once? (Doc ID 578574.1) In this Document Workflow Information Center, Diagnostics, & Community APPLIES TO:Oracle Workflow - Version 11.5.9 to 12.2 [Release 11.5 to 12.2] Information in this document applies to any platform. GOALThe goal of that Note is to explain how to bulk update the Email Style preference for all E-Business Suite users at once. The same can be used to update the Email Style for a group of users only, for instance the users who have the preference set to "Disabled" ... Usually, each user must reset the Email Style preference through the "Preferences" page available from his Home Page. SOLUTION1. Unfortunately, currently there is no seeded way to do this. An enhancement request has been logged for this under internal Bug 5748131 (NEED PLEASANT WAY TO BULK RESET NOTIFICATION PREFERENCE FROM DISABLED). It is under Oracle Development's review. 2. Currently, the only workaround to change the Email Style of all users is to update the tables. Note that there are 2 tables to update : FND_USER_PREFERENCES and WF_LOCAL_ROLES. One should backup the tables before performing the updates as updating application tables from sqlplus is not supported. 3. Updates for All Users would look like:
4. Updates for Users having the preference set to "Disabled" would look like:
The where clauses of above SQL can be modified to match ones needs. Possible values for <wished_preference> are: QUERY (corresponds to preference value "Do not send me mail") MAILTEXT (corresponds to preference value "Plain text mail") MAILATTH (corresponds to preference value "Plain text mail with HTML attachments") MAILHTML (corresponds to preference value "HTML mail with attachments") MAILHTM2 (corresponds to preference value "HTML mail") SUMMARY (corresponds to preference value "Plain text summary mail") SUMHTML (corresponds to preference value "HTML summary mail") DISABLED (corresponds to preference value "Disabled") In EBS 12.2+, run the Concurrent Program (FNDWFBULKRESETNTFPREF) "Workflow Directory Services Bulk Reset DISABLED Notification Preference". This program resets the notification preference of all DISABLED users/roles by Mailer due to some error to its previous value. Workflow Information Center, Diagnostics, & Community
REFERENCESNOTE:421245.1 - E-Business Suite Diagnostics References for R12 BUG:4771010 - DATA SCRIPT TO STOP EMAILS IN 11.5.10.2 NOTE:1186338.1 - R11i / R12 : EBS Technology area - Webcasts delivered by Support and Development NOTE:417030.1 - How To Change The E-mail Notification Preference En Masse For Multiple Users NOTE:1320509.1 - Information Center: E-Business Suite Oracle Workflow (WF) NOTE:179661.1 - E-Business Suite Diagnostics 11i Test Catalog |