- 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
06-16-2015 05:40 AM
Thanks everyone for the assistance. I matched up the names of the variables like Berny suggested and it passed through the value to the workflow. Using the current.variable_pool.xxxx also worked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2017 05:59 AM
Should this work for a variable within a variable set too?
I've tried various versions of the above mentioned options but with no luck in my Geneva Instance.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2017 09:31 AM
Michael,
No difference whether it's a normal variable or from a variable set. I have personally done it with both (I'll double check and edit this post if I am incorrect).
Could you link us a snippet of your code?
