How to Link a catalog item from another catalog item

rambabu1
Giga Expert

Hi,

Please navigate to <registration link> for completing the process.

In that registration link i want to give the other catalog form.

How to link a catalog item to another catalog item?

1 ACCEPTED SOLUTION

Ashley Snyder1
Giga Guru

You can create a ui macro for this in the platform, and a widget for the service portal. The link will depend on which view you're sending the user to, as if you're trying to send them to a link within the frameset you have to copy the entire catalog > catalog item link address, else it will open outside of the frameset, here's a quick example I pulled out of my PDI by navigating to Catalog and drilling down to a catalog item:

/com.glideapp.servicecatalog_cat_item_view.do?v=1&sysparm_id=e56a7ffe41011300964ff05369414ebd&sysparm_link_parent=109f0438c6112276003ae8ac13e7009d&sysparm_catalog=e0d08b13c3330100c8b837659bba8fb4&sysparm_catalog_view=catalog_default&sysparm_view=catalog_default

In a portal widget you'd use something like: 

 <a href='sp?id=sc_cat_item&sys_id=[SYS_ID_OF_CATALOG_ITEM]'>Text</a>

This eliminates the need for any instance specific URLs, and sys_ids of catalog items shouldn't be changing between the instances.

 

View solution in original post

9 REPLIES 9

Inactive_Us2547
Mega Contributor

When you say link do you mean that catalog items are dependent  or its just you want user to go to the other catalog item by clicking on the link? If you want user to go to the link then you can provide the link to catalog item using the id and sys_id for the catalog item.

 

Hi Amit,

just user go to the other catalog item by clicking on the link? but when we move Dev to Stage the Id's will changed.

So how can i give sys_id

That means the sys_id is not same in Dev and Stage. The item was separately created in QA and you haven't used update set....is that correct?

Go to maintain item from filter navigator-> list open your your item in stage -> right click on header-> and there should be option to copy sys_id for the record. use this copied sys_id while adding the hyperlink url.

 

As a best practice just make sure that you maintain the same sys_id the item in all your environments.