- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2020 07:35 AM
Hi everyone,
I am working on one requirement where I had to create some of the catalog tasks using run script in the Workflow. But, variables section is being missed from all of those tasks. We usually set variables to be displayed in the task form through workflow. But, in this case, how to display the variables section within the task form of the Request item. Please provide your insights if anybody know info on this.
Thanks in advance.
Regards,
Chaithra
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2020 08:05 AM
Hi there,
(Out-of-the-box) When doing this manually, you would usually on a Catalog Task step, add variables from the left to the right column. The relation behind this is actually stored in table: sc_item_variables_task.
So if wanting to create variables scripted. And having them displayed also on the Catalog Task... you also need to script the relation to table sc_item_variables_task.
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2020 05:43 PM
Hi,
Glad you found the answer through a related thread on your own!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!