How to pass Catalog item name to task form

akriti2
Kilo Contributor

Hi all,

How do I pass catalog item name to tasks. One way is to create it as a variable on the catalog item and pass it to the tasks in the workflow as shown below but I do not want to create a variable. How do I achieve this. I will be passing some variables shown below on the left and I want the catalog item name too

Thanks

find_real_file.png

1 ACCEPTED SOLUTION

Based upon your example, this is what you can use:


task.short_description = "Please deploy item "+ current.cat_item.getDisplayValue() + " to the user";



Let us know if that works to your liking.


View solution in original post

5 REPLIES 5

rlatorre
Kilo Sage

Try adding the dot walked field to the TASK form:



request_item.item


ccajohnson
Kilo Sage

I am guessing that you want to set the Short description field on the task to include the Catalog item from the Requested Item record, correct?



If that is the case, you should be able to check the Advanced checkbox on your Workflow Activity and include the following in your script:



task.short_description = current.cat_item.getDisplayValue();



Let us know if you have any questions,


I had something else in mind but your idea is definitely better Christopher. I would like to add something like   "Please deploy item (catalog item name) to the user"


Based upon your example, this is what you can use:


task.short_description = "Please deploy item "+ current.cat_item.getDisplayValue() + " to the user";



Let us know if that works to your liking.