Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Task definition not found in Apex Approvals

Robin BijuJun 6 2022 — edited Jun 6 2022

I'm trying to create a task using APEX_APPROVAL.CREATE_TASK Function in apex version 22.1.0.
I have already created a task definition with static id as 'LEAVE_REQUEST'.
Below is my code.
DECLARE
l_task_ret_id NUMBER;
BEGIN
l_task_ret_id := APEX_APPROVAL.CREATE_TASK (
p_application_id => 128,
p_task_def_static_id => 'LEAVE_REQUEST',
p_subject => 'This is a subject',
p_parameters => apex_approval.t_task_parameters(
1 => apex_approval.t_task_parameter(static_id => 'LEAVE_TYPE', string_value => 'SICK'),
2 => apex_approval.t_task_parameter(static_id => 'NO_OF_DAYS', string_value => '10')),
p_priority => 2,
p_initiator => 'JANE',
p_detail_pk => NULL );
DBMS_OUTPUT.PUT_LINE (l_task_ret_id);
END;
I get the below message while executing the above code. Can anyone of you help me to trace the problem.
Thank You.
image.png

This post has been answered by Ananya Chatterjee-Oracle on Jun 7 2022
Jump to Answer
Comments
Post Details
Added on Jun 6 2022
6 comments
334 views