Display catalog variables on task form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2014 03:43 AM
There are a lot of questions regarding workflow and variables but none that seem to answer my question.
I am using a workflow to create a task from a Requested Item. This is a facilities task. I am trying to pass the variables completed on the form onto the Facilities task but I cannot seem to get this to work. I don't want to use a record producer.
Has anyone got any suggestions please?
- Labels:
-
Service Catalog
-
Workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2014 06:30 AM
Ideally it is not possible through Create Task activity.
May be you can try one thing, I am not sure whether it will work or not as I have not tried.
1) Goto Workflow-->Activity Definition through Menu
2) Search for Catalog TAsk Activity//
3) Select "Task Table" from "Activity Varibles"
4) Remove Read Only checkbox
5) Choice select Dropdown , from choice list you can add your new table.
May in the similay way you can modify the create task or yu can create new Activity.
MAke sure you have to modify the task form and have to add variable editor.
Please check and let me know the result.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2014 06:37 AM
Hi,
Thanks again but I already tried this one too! Still no luck...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2014 09:04 AM
Here is something you could use.
Either create a new field in your Facility task table to store the content of your variable or simply use the 'description' field to append to it your variable content along with some text.
Personally, I would use the description field and do this in the workflow at the "create task":
1. Select the box "Advanced" at the bottom of the screen (will make the "Advanced Script" window show up).
2. Assuming 2 variables with names being my_var1 and my_var2, add some script like this one:
task.description = 'This is variable #1: ' + current.variables.my_var1 + '\nAnd here is variable #2: ' + current.variables.my_var2;
Cheers,
Paul-Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2014 02:08 PM
Variables on a RITM are stored in a different table than variables on other tables are stored. I know you don't want to use a Record Producer; but this may work. Create a Record Producer to create the Facilities task then use the script : Order a Service Catalog Item from a Script - ServiceNow Wiki in a 'Run Script' Box on the WF to submit the RP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2014 01:25 AM
Thank you for your suggestions. The reason I don't want to use a record producer is because I would like to use an Order Guide. However, I have now reverted to a record producer (which really does not look as effective!). I then will need the script.
Many thanks.