Checkbox variable is not showing in the task and can't close out task since it's mandatory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2024 05:28 AM
I'm unable to close out task since the checkbox variable is not visible and it's mandatory.. How can I close it out?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2024 06:56 AM
You can update the value of the Catalog Item variable on an RITM via script like this:
var mtom = new GlideRecord('sc_item_option_mtom');
mtom.addQuery('request_item', 'ritm_sys_id'); //your RITM to update sys_id
mtom.addQuery('sc_item_option.item_option_new', '099729ffdb78ccd00249dffa5e9619ec'); //sys_id of the checkbox variable
mtom.query();
if (mtom.next()) {
var item = new GlideRecord('sc_item_option');
item.addQuery('sys_id', mtom.sc_item_option.toString());
item.query();
if(item.next()){
item.value = true;
item.update();
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2024 07:01 AM
If you can see and update it on the RITM record, it will also reflect that value in the Catalog Task. Otherwise, someone who has write access to the task / this variable will have to do so.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2024 01:29 PM
You can't cause it's grey out and can't be edited in RITM and TASK.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2024 06:45 AM
Hi @John Vo1
Are you creating task using flow then you have to add all variables for this catalog task.