SAM and Software Catalog

Enrique Gutierr
Tera Contributor

Hi, 

We've implented recently SAM into our SN instance. We would like to link some of the software models with the existing catalog we have right now, but when I try to do it I don't have the option to select it from a list, I just have the option to create a new item in our catalog (which we don't want). 

EnriqueGutierr_0-1697540690595.png

As I mentioned we already have this item published in our catalog, but it's not link to anything 

EnriqueGutierr_1-1697540757001.png

Is there a way to link the software model I have in SAM, with the existing item in the catalog?

1 ACCEPTED SOLUTION

Mary9
Tera Guru

Under the Product Catalog tab, you should see a Catalog Item field. This is where you want to enter the existing item.

 

If this field is read-only then you'll need an admin to either uncheck the read-only flag on the dictionary or enter the data via a script such as:

 

var gr = new GlideRecord('cmdb_software_product_model');
gr.get("<software model's sys_id>");
gr.product_catalog_item = "<cat item's sys_id>";
gr.update();

 

View solution in original post

1 REPLY 1

Mary9
Tera Guru

Under the Product Catalog tab, you should see a Catalog Item field. This is where you want to enter the existing item.

 

If this field is read-only then you'll need an admin to either uncheck the read-only flag on the dictionary or enter the data via a script such as:

 

var gr = new GlideRecord('cmdb_software_product_model');
gr.get("<software model's sys_id>");
gr.product_catalog_item = "<cat item's sys_id>";
gr.update();