Service catalog : Can we change a Multi row variable set to Single row variable set ?

soumyadaggula
Tera Contributor

Hello Team , 

 

Is there any option / a way to change a Multi row variable set to Single row variable set in catalog item ?

1 ACCEPTED SOLUTION

Gunjan Kiratkar
Kilo Patron
Kilo Patron

Hi @soumyadaggula ,

You can change that by using background script :-

var gr=new GlideRecord("item_option_new_set");
gr.addQuery('sys_id','13a1dfdc2f9711107a532ca62799b6bf'); //replace your MRVS sys_id here
gr.query();
if(gr.next()){
gr.type='one_to_one';
gr.update();

}

Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy

View solution in original post

3 REPLIES 3

Gunjan Kiratkar
Kilo Patron
Kilo Patron

Hi @soumyadaggula ,

You can change that by using background script :-

var gr=new GlideRecord("item_option_new_set");
gr.addQuery('sys_id','13a1dfdc2f9711107a532ca62799b6bf'); //replace your MRVS sys_id here
gr.query();
if(gr.next()){
gr.type='one_to_one';
gr.update();

}

Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy

soumyadaggula
Tera Contributor

Hello Gunjan , thank you So much , i will try that now 

soumyadaggula
Tera Contributor

It worked , thanks a ton Gunjan !!