Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Modify the "Bulk Update" Modal on Transfer Orders

JJG_SNOW
Mega Guru

There is a UI action on the Transfer Order Line table. This UI action allows users to move multiple transfer order lines through the stages of the workflow:

JJG_SNOW_0-1744736180421.png

 

 

JJG_SNOW_1-1744736210923.png

 

I want to customize this modal to include additional stages / add fields. Where can I find this modal? I looked in the UI Pages module but could not find anything.

 

The "Bulk Update" UI action script:

/* global assetSetDomainParameters */
function openModal() {
	var maxCount = g_scratchpad.sn_itam_bulk_update_max_tol;
	var maxExceededMsg = '';
	getMessage('More than {0} lines are selected; the bulk update is limited to {0} lines.', function(translatedMsg) {
		maxExceededMsg = new GwtMessage().format(translatedMsg, maxCount);
	});
	var sysId = g_form.getUniqueValue();
	var DialogClass = window.GlideModal ? GlideModal : GlideDialogWindow;
	var gm = new DialogClass('alm_bulk_update_tol_tasks');
	// Sets the dialog title
	gm.setTitle(getMessage('Bulk Update - Transfer Order Lines'));
	gm.setPreference('sysId', sysId);
	gm.setPreference('maxCount', maxCount);
	gm.setPreference('maxExceededMsg', maxExceededMsg);
	// to pass domain params
	assetSetDomainParameters(gm);
	gm.setWidth(550);
	// Opens the dialog
	gm.render();
}

 

1 ACCEPTED SOLUTION

jcmings
Mega Sage

It should be in the UI Pages module; the sys_id of the record is 41b98231b7e11010249a6f28ee11a94f (at least in my new Yokohama PDI).

 

You can use this link: https://INSTANCE.service-now.com/nav_to.do?uri=sys_ui_page.do?sys_id=41b98231b7e11010249a6f28ee11a94f

View solution in original post

1 REPLY 1

jcmings
Mega Sage

It should be in the UI Pages module; the sys_id of the record is 41b98231b7e11010249a6f28ee11a94f (at least in my new Yokohama PDI).

 

You can use this link: https://INSTANCE.service-now.com/nav_to.do?uri=sys_ui_page.do?sys_id=41b98231b7e11010249a6f28ee11a94f