Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to add variables to sctask form which is created through script?

Naveen Kumar
Tera Contributor

In the workflow , I have to use run script to created 3 tasks based on some condition.

If I create a task using run script, There is no option for "Variables on sc task form".

So, how do I add some of the order guide variables on to the sc task form.

And how to show a order guide field on RITM variables.

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

check this article

Adding Variables to a Task via a script instead of using the slush bucket within a workflow for a C...

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi, 

I have used the script and it created a record in the table

find_real_file.png

 

But in the sctask, its not visible on the sctask.

find_real_file.png

the link I shared has worked fine earlier for members.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader