- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2017 01:36 AM
Hi,
I have developed a catalog item which when filled and submitted would create a Request and RITM under it. Along with this, I want a Catalog Task to be automatically created with a description "Default Task".
I am quite new to Servicenow and unable to find a way to solve this. Please help.
Thanks in advance.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2017 02:26 AM
Oh My Mistake.
Try this:
- var gr = new GlideRecord('sc_task');
- gr.initialize();
- gr.request_item = current.sys_id;
- gr.short_description = "Sample Description";
- gr.description = "Sample Description"
- gr.insert();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2017 02:26 AM
Oh My Mistake.
Try this:
- var gr = new GlideRecord('sc_task');
- gr.initialize();
- gr.request_item = current.sys_id;
- gr.short_description = "Sample Description";
- gr.description = "Sample Description"
- gr.insert();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2017 02:43 AM
HI Ashutosh,
I did this and it is creating 4 Catalog Tasks. Why is it creating four catalog tasks? Please let me know.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2017 02:44 AM
Try using After Insert Business rule. Remove update checkbox.
Thank you,
Ashutosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2017 02:48 AM
Perfect. It is working. Thank you.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2017 02:48 AM
Great Happy to help you.
Thank you,
Ashutosh