how to generate a task for custom table?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2017 08:47 PM
6 REPLIES 6

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2017 10:00 PM
example you can use below code in run script.
// this is an example to insert catalog task thru run script.
var gr = new GlideRecord('sc_task');
gr.initialize();
gr.parent = current.sys_id;
gr.short_description="Task created thru run script";
gr.request=current.request;
gr.request_item = current.sys_id; //Link request item to catalog task created.
gr.insert();
Regards
Harish
Harish

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2017 02:33 AM
You can use run script like i showed in example earlier.
Regards
Harish
Harish