Is there a way to change a catalog item to a record producer

Cupcake
Mega Guru

I created a catalog item, but after further conversation with the customer, this now needs to be a record producer.

Is there a way that I can change the catalog item to a record producer without loosing the work that I did already?

This is my first time creating a record producer.

Thanks,

Karen

1 ACCEPTED SOLUTION

Cupcake
Mega Guru

Hey everyone I posted this question 3 years ago, but I found a way. 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();

 

Hope this is helpful to someone.

 

Karen

View solution in original post

19 REPLIES 19

rajeevlochan82
Mega Guru

Record Producer and Service Catalog Behave little differently. Though a Record Producer is always bound to a specific Table like Incident / Problem / Change e.t.c but the Service Catalog Always creates a Request and Requested Item. So it depends what you implemented but you definitely will need to make changes as these two implementations differ.


Laurie Marlowe1
Kilo Sage

Karen,



You will need to rebuild the item as a record producer.   What I do, when I need to convert a catalog item is, I open the catalog item in one browser (e.g. - IE) so I can see the item, then open a different browser (e.g. - Chrome) to create the record producer.   You can copy the variables from IE, and paste them into Chrome.   I find this is faster than manually recreating everything from scratch.



The reason for two different browsers is so your "screens" as you move around in IE don't affect what you are doing in Chrome.   If you open two tabs in the same browser you will get unexpected results.



Thanks,



Laurie



Please mark Helpful, Like, or Correct Answer as applicable.


Thanks Laurie. There is always more than 1 way to accomplish a task.


I found this script from about 2 years ago that was given to me when we first started using ServiceNow. We had a senior developer working with us who is freakin' phenomenal and he was teaching us some things along the way as they came up.


It's been a while so don't quote me on the below. It worked for me before, but we just upgraded to Helsinki and I don't know if the experience is going to be the same.



Run this as a background script:



var gr = new GlideRecord("sc_cat_item"); gr.get("sysid of your catalog item"); gr.sys_class_name="sc_cat_item_producer"; gr.update();



I will back after these commercial messages. LOL !


Let me know how that works!