How to get requested item details in Virtual Agent and respond them
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2022 03:15 AM
Dear all,
I want to know if it's possible to obtain the variables from the requested item (in sc_req_item.list) in Virtual Agent.
The information I want to get is as follows:
I can't find them in Virtual Agent.
Thanks a lot.
Labels:
- Labels:
-
Virtual Agent
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2022 05:25 AM
dont think you can find them directly , you will have to program it , what kind of VA config you have set up so far ?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2022 06:27 AM
We have one topic where we display a standard variable for RITMs and it's pretty easily attainable via a GlideRecord query script:
var value;
var variable = new GlideRecord('sc_item_option_mtom');
variable.addQuery('sc_item_option.item_option_new.name','[variable_name]');
variable.addQuery('request_item',[sys_id]);
variable.query();
while(variable.next()) {
value = variable.sc_item_option.value;
}
Again, that's just a simple query looking up a single specific variable on a specific RITM. If you're trying to do something more dynamic, i.e. display certain variables depending on certain catalog items, you can get creative and use this as a starting point.