- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2015 10:32 AM
I've created a Catalog Item that has a variable to capture input needed when requesting the item. The workflow I've added to the item has a input variable. How do I pass the value supplied for the variable on the Cat item to the workflow input variable?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2015 10:48 AM
Hi David, if I'm not mistaken the variable and the workflow variable just need to be called the same. Just keep in mind that these names are case-sensitive.
Also, keep in mind when using a workflow for any item (for instance Request item on your case), all the variables on the request item are accessible in the workflow. You can access these by doing:
current.variables.the_name_of_the_variable
Just make sure the table on your workflow property is rightly set on the context of what current should represent. Requested Item on your case.
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2017 09:43 AM
Mamoj,
You can get the variables in the same way, regardless of whether they map to fields or not. I did a few tests with different record producers writing to the incident table and was able to grab variables just fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2018 12:16 AM
Hi Berny,
When you say "Just make sure the table on your workflow property is rightly set on the context of what current should represent. Requested Item on your case." what exactly do u mean...I mean how do i check whether the property is rightly set
Thanks in advance
Lynette
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2015 10:51 AM
Using Variables in a Workflow - ServiceNow Wiki
Refer section 5.3 of it.
you can also store catalog variable on workflow scratchpad object
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2015 11:23 AM
Check this link : http://wiki.servicenow.com/index.php?title=Using_Variables_in_a_Workflow#Workflow_Catalog_Variables
This will help you how to create them
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2015 11:39 AM
Use current.variables.xxxxxx