Question on duplicate sc_task

Mani60
Tera Contributor

Hi All,
I have query on duplicate task sc_task ,
In RITM when approval approved the form at that time sc_task should be created and i'm able to create those task  but in my case duplicate task are creating with different task number.
I'm written run script to create a task
please find the attached run script:

if (workflow.scratchpad.contact_center_number != 'Existing Number') 
{
var nike = new GlideRecord('sc_task');
nike.initialize();
nike.short_description='Please assign existing Number.';
nike.request_item=current.sys_id;
nike.priority=3;
nike.assignment_group ='da2c3d88c3730550ba66783ce00131f6';// Network
nike.insert();

}

 

Mani60_0-1691653215656.png

 


so could you please help me on this to get the proper solution.

 

Thanks,

2 REPLIES 2

Harish KM
Kilo Patron
Kilo Patron

Hi I dont think your script is triggering the catalog task because the short description is different from your script and screenshot.

Regards
Harish

Utpal Dutta
Tera Guru

Hi Mani,

Your script seems fine. I would suggest you to take a look into the workflow which is running on the catalog item by opening the RITM and clicking on the "Show Workflow" related link in the bottom.

Check if any other task in workflow is running and creating the duplicate task. If not please go to (sc_task) table and check for Insert type business rules. Maybe a business rule is reinserting the task created by the workflow. 

 

Please let me know what is your analysis. I'm here to help!

 

If my answer helps then please mark it Helpful or Correct!

 

Thanks,

Utpal