Workflow Advanced Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2020 09:26 AM
Hello all,
last but not least i need help with a catalog task. I want to use the same worfklow (sc_request_item) with more items.
In this workflow is a catalog task, assigned to our ServiceDesk.
My problem is to show the current variables in the task.
For Example the workflow is in "item1" / "item2" / "item3".
Item1 variables: test1 / test2
Item2 variables: snow1 / snow2
item 3 variables: sun1 / sun2
So all variables got different names. Is there a way via script, to check the current variables of the requested item?
This is what i got now:
task.short_description = current.cat_item.name; // working
task.variables = current.variables; //Does not work! nothing happens here!
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2020 11:22 AM
Ok, something like this i was looking for.
But where is the InfoMessage displayed / printed in the task on your example?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2020 01:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2020 12:14 PM
I found a way without scripting. After the workflow has been deposited at each item, i can open the catalog task in the workflow and every variable of each item is available in the variable editor.
I choosed them all. But in the catalog task for the service desk is justed display the variables of the current requested item.
With this way, i also have to update the catalog task in the WF every time when i new item is created, what I wanted to prevent, but its ok for the first time until i found a better way via script.