how to generate a task for custom table?

des
Tera Contributor

Hello,

I have generated a one custom table i want to generate a task through workflow.in workflow core activities task generating option has not showing.

please find the below screenshot for reference.

Thanks&Regards,

Sravanthi.

find_real_file.png

6 REPLIES 6

Harish KM
Kilo Patron
Kilo Patron

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 KM
Kilo Patron
Kilo Patron

You can use run script like i showed in example earlier.


Regards
Harish