Catalog item as a related link on a incident form or any particular form

Rahul84
Tera Contributor

Hi Team,

I have a requirement as - I need to add a catalog item as a related link on a incident form or any particular form.

and after a click on this link my catalog form must be opened to submit a request.

Pls let me know how can I achieve this requirement.

Can we achieve this via UI action and tick the "form link" checkbox as true on UI action . But how we can have our catalog item under this link.

Pls help

Thanks

1 ACCEPTED SOLUTION

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

yes UI action with Form link will do

ensure you make UI action as client side

Client checkbox - true

Onclick - openCatalogItem()

Script

function openCatalogItem(){
	var url = '/com.glideapp.servicecatalog_cat_item_view.do?v=1&sysparm_id=5682e70d07e51410540bf2508c1ed0f7';
	g_navigation.open(url, '_blank');
}

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Thank you @Ankur Bawiskar for the response.

Just want to confirm one thing in line var url. Do I need to change the complete url or just sysparm_id = sys_id of my catalog item.

var url = '/com.glideapp.servicecatalog_cat_item_view.do?v=1&sysparm_id=5682e70d07e51410540bf2508c1ed0f7';

 

Hi,

just change the catalog item sysId and it will work for native

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader