Suppressing email notification from workflow

To stop mails from going to Roles, the following needs to be done.

This will send notification in the worklist but not send email notifications.

wf_directory.createadhocrole(
role_name => l_role,
role_display_name => l_role,
role_description => l_role,
notification_preference => ‘MAILHTML’, /* pass NULL for this*/
— email_address => l_email,
status => ‘ACTIVE’,
expiration_date => NULL
);

Advertisements