logo

NJP

How to populate the short description of a task with various values of variables from a request item

Import · Aug 27, 2015 · article

Go to the workflow editor, go inside of the catalog task that you want the short description to contain specific values of those variables and type the following script:

task.short_description = (current.variables.xxx_xxxx_xxxxx + " + " +current.variables.xxx + " + " + current.variables.xxxx_xxx_xxxx_xx_xxx);

Of course, the x's represent whatever the name of your variable is (such as abc_company); therefore, that would equate to task.short_description = (current.variables.abc_company + " + " + current.variables.xyz_company);

Hope this is helpful.

View original source

https://www.servicenow.com/community/developer-articles/how-to-populate-the-short-description-of-a-task-with-various/ta-p/2307120