How to get requested item details in Virtual Agent and respond them

Junyu
Tera Contributor

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:

find_real_file.png

 

I can't find them in Virtual Agent.

Thanks a lot.

2 REPLIES 2

Ravi9
ServiceNow Employee
ServiceNow Employee

dont think you can find them directly , you will have to program it , what kind of VA config you have set up so far ? 

Chris D
Kilo Sage
Kilo Sage
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.