Parameters for Catalog Items

Using parameters in catalog items is useful in many situations.

  • Link in an email that references a previous task

  • Link on a website that references a particular issue

  • Auto-fill values for certain catalog items


Parameter in a URL to set the category field on a catalog item.

Parameter in the URL

Catalog Client Script

function onLoad() {
	var category = getParameterValue('sysparm_inc_category');
	if (category) 
function getParameterValue(name) {
	name = name.replace(/[[]/, "\\[").replace(/[\]]/, "\\]");
	var regexS = "[\\?&]" + name + "=([^&#]*)";
	var regex = new RegExp(regexS);
	var results = regex.exec(top.location);
	if (results == null) {
		return "";
	} else {
		return unescape(results[1]);

Navigation by URL

If you are interested in how to pass parameters by url in normal ServiceNow forms, check out this article: