- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2022 04:35 AM
I am creating catalog task using run script. once catalog task is created Variables (which shows all variables from RITM) is missing.
var gr = new GlideRecord('sc_task');
gr.initialize();
gr.request_item = current.sys_id;
gr.request = current.request;
gr.short_description = 'Description';
gr.insert();
I am using above script. Please guide me how to show Variable editor on SCTASK
Solved! Go to Solution.
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2022 04:48 AM
Hey,
Variables from catalog is visible on catalog task when you would useon a Catalog Task step. The relation is stored in sc_item_variables_task table
Using Run Script will not result into showing variables on the catalog task form.
But there's a workaround which you can use
Scripting with catalog variables on tasks (sc_item_option_mtom) table
Feel free to mark correct, If I answered your query.
Will be helpful for future visitors looking for similar questions 🙂
Aman Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2022 04:48 AM
Hey,
Variables from catalog is visible on catalog task when you would useon a Catalog Task step. The relation is stored in sc_item_variables_task table
Using Run Script will not result into showing variables on the catalog task form.
But there's a workaround which you can use
Scripting with catalog variables on tasks (sc_item_option_mtom) table
Feel free to mark correct, If I answered your query.
Will be helpful for future visitors looking for similar questions 🙂
Aman Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2022 04:50 AM