What is the sys_id gs.executeNow() is returning?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2022 12:13 PM
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
}
}
Labels:
10 REPLIES 10

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2022 05:58 PM
BTW, sys_trigger is the Schedule so the sys_id is the instance of the scheduled job that's running.