Question on duplicate sc_task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-10-2023 12:40 AM
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();
}
so could you please help me on this to get the proper solution.
Thanks,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-10-2023 12:45 AM
Hi I dont think your script is triggering the catalog task because the short description is different from your script and screenshot.
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-10-2023 12:52 AM - edited ā08-10-2023 12:53 AM
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