Service Catalog Item - use the Display Name not the Name

Mickey_Cegon
Tera Expert

We are about to implement our first Service Request in our Service Catalog, to enable staff to order Software. We have not implemented Asset Management or Software Asset Management yet, but it's coming soon. We are on Calgary. I've built Software Models for our software, and Promoted items to the catalog. But, when we built the models, it asked for Manufacturer, Name, and Version, to get the Display Name of the Model. That's great, but the Item is then only named the "Name" of the model. Example is Adobe Acrobat Professional x (v.10) for the Model, but just Acrobat Professional for the Name of the Catalog Item. Is there a way to publish Items to the catalog so that the entire Display Name gets carried over to the Item? We really didn't want to have to put the version information into the Description of each Item. And, if we have multiple versions of the same name (which is the case with several), then the catalog looks a bit confusing, with multiple items listed as the same Name.

What am I missing, or setting up incorrectly?

Mickey Cegon
FBL Financial Group, Inc.

4 REPLIES 4

TJW2
Mega Guru

Verify the 'display Value' on the Software Model table is set to the 'display_name' field. If you want to store the Display Name in the variable (instead of the sys_id) you can use a 'lookup select box' variable type instead of a Reference variable.


Mickey_Cegon
Tera Expert

I'm not sure I'm following you. What I need is for the client to go to the Catalog, and under the category Order Software, they see a list of all my Catalog Items in that category. But, when promoted from the Model, the Item is created with the Name of the Model showing not the Display Name. I checked, and under the dictionary for cmdb_model table, the display_name field is set to display = true. I'm not setting up a variable, I want the actual Name of the Item to be the Display Name of the Model, not the Name of the Model. This is before I add any Variables to the Item.

I looked at the UI action for Publish to Software Catalog, which is how the Item is created from the Model.
function publish() {
var gDialog = new GlideDialogWindow('publish_to_product_catalog');
gDialog.setWidth("500");
gDialog.setTitle('Publish ' + g_form.getValue('display_name') + ' to Software Catalog');
gDialog.setPreference('sysparm_sys_id', g_form.getUniqueValue());
gDialog.setPreference('sysparm_display_name', g_form.getValue('display_name'));
gDialog.setPreference('sysparm_type', 'model');
gDialog.setPreference('sysparm_catalog', 'software');
gDialog.render();
}

I checked the Catalog Item table, and there is no field set with Display = true. So, as an experiment, I set the Model field to Display = true, but no change on how the items appear in the Order Software list.

Mickey


This will require modifying the Script Include for the ProductCatalogUtils. The script has the following line which sets the Name of the catalog item: destination.name = source.name;


Mickey_Cegon
Tera Expert

That sounds like what I was looking for! Thanks!

Mickey