How to populate the RITM variables on to the task form

girishk
Tera Expert

Hi ,

How to populate RITM variables on the task form when the task is created via a run script??.the task that i am creating is a sc_task...??

 

HELP needed....

 

Thanks..

1 ACCEPTED SOLUTION

DeepJ
Giga Contributor

HI Girish,

Check the Global checkbox on variables form. Then the variables will be available on both RITM and Catalog task forms automatically.

Good if it helps you.

Swetha.

View solution in original post

10 REPLIES 10

Mahesh89
Tera Contributor

Hi girshk,

 

You may found helpful for your task,

https://community.servicenow.com/community?id=community_question&sys_id=9c01cba5db98dbc01dcaf3231f96194a 

 

Regards,

Mahesh

SNOW User8
Giga Guru

You can get Request/Requested Item variables by using "current.request.variable_name"

 

For Ex:

var specialInstruction = current.request.special_instructions;

sorry . i meant the wrong way.i want to show the RITM variables on to the tasl form that is created via workflow runscript.

I don't think you can do this, for this to work you need to use the create task activity in the workflow where you can select which variables should be shown on the task. It's the only way I know of at least.

Otherwise you can use the script above to get the variable and write it to the description field or something like that.