Sunday, May 17, 2020

API to cancel a Workflow Notification from PLSQL (WF_NOTIFICATION.CANCEL)

        Below script will help you to cancel any workflow notification from Database

Tested Instance: R12


CREATE OR REPLACE FUNCTION xxwf_cancel (pin_noitification_id IN NUMBER) RETURN VARCHAR2 IS BEGIN wf_notification.cancel
nid => pin_noitification_id, cancel_comment => 'This notification is cancelled from Backend.'
; COMMIT; RETURN 'Action Completed Successfully'; EXCEPTION WHEN OTHERS THEN RETURN 'Error: ' || SQLERRM; END xxwf_cancel;

Test Script:

DECLARE lv_message VARCHAR2(1000); BEGIN lv_message := xxwf_cancel(2906622); DBMS_OUTPUT.put_line(lv_message); END;

1 Responses to “API to cancel a Workflow Notification from PLSQL (WF_NOTIFICATION.CANCEL)”

Kumar Macha said...
September 7, 2022 at 5:28 AM

does the preparer get any email after canceling the notification??

Post a Comment


The ideas, thoughts and concepts expressed here are my own. They, in no way reflect those of my employer or any other organization/client that I am associated. The articles presented doesn't imply to any particular organization or client and are meant only for knowledge Sharing purpose. The articles can't be reproduced or copied without the Owner's knowledge or permission.