Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How do you open a catalog item from agent workspace and pass user information over?

Drew8
Tera Guru

We have a field that references the sc_cat_item table on our interaction form in Agent workspace. If you click the "i" icon it will open a sub tab to the portal view of that catalog item. Is it possible to pass the opened for to the requested for on that menu?

1 ACCEPTED SOLUTION

Hi,

check this link which has the solution

Passing variables from interatcion record to catalog item in Agent Workspace

Regards
Ankur

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

View solution in original post

8 REPLIES 8

This is what we have the UI action doing

function onClick() {
	var result = g_form.submit('sysverb_ws_save');
	if (!result) { // failed form submission
		return;
	}
	result.then(function() {
		var params ={};
		params.sysparm_parent_table = "interaction";
		params.sysparm_parent_sys_id = g_form.getUniqueValue();
		g_service_catalog.openCatalogItem('sc_cat_item', '-1', params);
	});
}

Hi,

check this link which has the solution

Passing variables from interatcion record to catalog item in Agent Workspace

Regards
Ankur

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

As another approach, do you know if there is a way to hide that icon instead?

Hi,

not much sure on that

Regards
Ankur

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