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

Bharath40
Giga Guru

Hi,



You can user Run script activity to create Task and in related lists you add Task for your custom table.


PriyaNarayanan
Kilo Contributor

Hello Sravanthi,



Please use Create Task option in the workflow editor.



find_real_file.png



thanks!


Priya


Hi priya,



In my workflows core part it does not show any Task activity.That is the issue in my workflow.


Hi ABC,



Create task activity will be shown for the table that was extended from task table. If your table was not extended from task table, then you have to use run script activity for inserting a new task in your custom table.



Activity Designer - Run Script - ServiceNow Wiki     - Run Script Activity



var gr = new GlideRecord('custom_table_name');


  gr.initialize();


            // set the values and finally


  gr.insert();