Is there a way to convert a Catalog Item to a Record Producer

rachelturkariga
Giga Contributor

I have a 3 catalog item but i wanted them to a Record Producer now. Since there are many variables and is there any easy way to create it rather than manually creating a record producer again.

Thank You Team.

Appreciate all your Help.

1 ACCEPTED SOLUTION

No worries Rachel.

 

Glad that the solution have worked out. But I was the first 🙂

View solution in original post

8 REPLIES 8

sachin_namjoshi
Kilo Patron
Kilo Patron

You can run this script as a background script.

 

 

var gr = new GlideRecord("sc_cat_item");
gr.get("sys id of the catalog form that you want to change to a record producer"); gr.sys_class_name="sc_cat_item_producer";
gr.update();

Regards,

Sachin

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Rachel,

You may find below thread helpful.

Script:

var gr = new GlideRecord("sc_cat_item"); 
gr.get("sys id of the catalog form that you want to change to a record producer"); 
gr.sys_class_name="sc_cat_item_producer"; 
gr.update();

 

Script Reference :https://community.servicenow.com/community?id=community_question&sys_id=545ffe69db58dbc01dcaf3231f96...

 

- Pradeep Sharma

 

- Pradeep Sharma

Jaspal Singh
Mega Patron
Mega Patron

Yes, Simply use below script as a background script which ensure variables are also intact.

var gr = new GlideRecord("sc_cat_item"); 
gr.get('sys_id_of_catalog_item'); //Sys_id of catalog item to be changed to record producer
gr.sys_class_name="sc_cat_item_producer"; 
gr.update();

Thank You,

It is working Fine