- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2017 12:17 PM
Hi Folks,
I have a question regarding Service catalog. I am trying to understand the difference between
sc_req_item & request _item. Can someone explain me the difference between the two.
Thanks,
Ashley
Solved! Go to Solution.
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2017 12:46 PM
Hi Ashley,
The request_item is a column name in sc_item_option_mtom table which takes sys_id of the RITMs. That will help to filter out the GlideRecord of sc_item_option_mtom table to extract the data of a particular related records.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2017 12:20 PM
'sc_req_item' is the task type (table name), and 'request_item' is the name of the reference field which points to the record on the sc_req_item table.
Is there a specific scenario you're trying to understand how these work?
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2017 12:36 PM
Tim, i was trying to understand the below code thats where i got stuck with request_item.
- var task = new GlideRecord('sc_task');
- //task.addQuery('assignment_group', 'd77c144f2b47308407ba65dee8da156d');
- //task.addQuery('state', '!=', 3);
- //task.addQuery('state', '!=', 4);
- task.query();
- while (task.next()) {
- var mtom = new GlideRecord('sc_item_option_mtom');
- mtom.addQuery('request_item', task.request_item); (**** Why is he using request_item here )
- mtom.query();
- while (mtom.next()) {
- gs.log('Task# ' + task.number + '/' + task.request_item.getDisplayValue() + '/Question:'+mtom.sc_item_option.item_option_new.question_text + '/Answer:'+mtom.sc_item_option.value);
- }
- }

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2017 12:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2017 12:54 PM
Good info Harsh, what is this mtom table, something new to me. I would love to learn about this