In Virtual agent for CSM, how to show cases opened by me under Check Case status.

Yashaswini
Tera Expert

Hi,

How to show cases opened by me under Check Case status topic.

Currently, OOB Check Case status topic shows all the cases present for other users as well, but I want to show only cases opened by me to check case status.

Your suggestion is much appreciated. Thank you.

 

Regards,

Yashaswini

1 ACCEPTED SOLUTION

Yashaswini
Tera Expert

Hi All,

Thank you so much for your response.

I figured out the solution.

Duplicate the OOB Check Case status topic and in the your case input change the choice expression from condition to script and update the script as below:

var options = [];
var gr = newGlideRecord(table);//gets the sn_customerservice_case table name
gr.addQuery('active',true);
var que = gr.addQuery('contact',vaInputs.user);
que.addOrCondition('opened_by',vaInputs.user);
gr.query();
while(gr.next()){
// gs.info("#yashu user"+vaInputs.user);
options.push({ 'value': gr.getUniqueValue(), 'label': gr.getValue('number') });
}
return options;
 
 

find_real_file.png

View solution in original post

3 REPLIES 3

Sukraj Raikhraj
Kilo Sage

You could create a default view that has opened by me ....or there is already a link in the navigator that says "My Cases".

Community Alums
Not applicable

Hi @Yashaswini ,

This doc should help you :https://docs.servicenow.com/en-US/bundle/sandiego-customer-service-management/page/product/customer-...

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

Yashaswini
Tera Expert

Hi All,

Thank you so much for your response.

I figured out the solution.

Duplicate the OOB Check Case status topic and in the your case input change the choice expression from condition to script and update the script as below:

var options = [];
var gr = newGlideRecord(table);//gets the sn_customerservice_case table name
gr.addQuery('active',true);
var que = gr.addQuery('contact',vaInputs.user);
que.addOrCondition('opened_by',vaInputs.user);
gr.query();
while(gr.next()){
// gs.info("#yashu user"+vaInputs.user);
options.push({ 'value': gr.getUniqueValue(), 'label': gr.getValue('number') });
}
return options;
 
 

find_real_file.png