What is the sys_id gs.executeNow() is returning?

JDX7913
Tera Guru

I have a code on a record producer that fires "gs.executeNow()" to trigger a scheduled data import. When I put "gs.addInforMessages(gs.executeNow())" I am getting a sys_id back, however, what is that sys_id? Is it the sys_id of "concurrent imports sets" or "import sets" because I can't find where that sys_id is located at?

Here is the sample code of gs.executeNow().

function fireTransformMap(){
	var exportGr = new GlideRecord("scheduled_import_set");
	exportGr.addQuery("sys_id", "fc2bcbf2db9a451077953b98f4961920");
	exportGr.query();
	if (exportGr.next()) {
		gs.addInfoMessage(gs.executeNow(exportGr)); // this is for scoped app, trigger schedule import
	}
}
10 REPLIES 10

BTW, sys_trigger is the Schedule so the sys_id is the instance of the scheduled job that's running.