- 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 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 08:15 AM
Hi Mark,
Thank you. I will try this and let you know the results.
Regards,
Chaithra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2020 08:36 AM
Hello
As you are working on the workflow, I would recommend to use Catalog Task activity, which is a OOTB feature instead of a Run Script.
Please hit correct based on impact of response.
Nitin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2020 05:40 PM
Hi Mark and Nitin,
My issue has been resolved. I followed community post as below. I am giving link here, so anyone who is in need can refer this.
This is what exactly I was looking for. Thanks a lot for your help and insights.
Regards,
Chaithra