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

10 REPLIES 10

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.

 

Is it possible to create the UI Macro, when variable type is label?

In this case, the variable would be a Macro instead of a Label, and you would include the Label text inside of the Macro/Widget.

Hi Ashley,

I am getting below error.

find_real_file.png

Hi! Thank you for sharing, can anyone provide the UI example of what this actually looks like?