SncTriggerSynchronizer.executeNow(schedJob)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2016 07:07 AM
hi all,
i am trying to execute a sceduled import from background using SncTriggerSynchronizer.executeNow(schedJob).
i am holding the return value of above in a variable and printing it
var schedJob = new GlideRecord('scheduled_import_set');
if(schedJob.get('name', 'naveen_test')){
var a =SncTriggerSynchronizer.executeNow(schedJob);
gs.print(a+'naveen');
}
each time it is printing different sys_id , but unable to identify to which table that sys_id belongs to.
i queried dynamically for all tables that have that sys_id , but i couldnt get any positive result.
any idea to which table that sys_id belongs to ???

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2016 07:57 AM
Hi Naveen,
I also use that command, but I'm not using the return value. Let me see what I have and if I can find out something.
Telmo

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2016 08:13 AM
okay .., thanks., return value (sys_id) seems strange. not able to figure out whether it is junk or it has any significance.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2016 08:45 AM
Hi Naveen,
I couldn't find that sys_id either.
I did run a script to search on the tables:
var mySysId = '34db88576f472a003cf8fb05eb3ee434'; // put in your sys_id here
var table = new GlideRecord('sys_db_object');
table.addEncodedQuery('nameNOT LIKEts_'); // removed index tables, they were giving false positives
table.query();
var i = 0;
while (table.next()) {
var gr = new GlideRecord(table.getValue('name'));
if (gr.get(mySysId)) {
gs.log('it looks like it came from ' + table.getValue('name'));
break;
}
}
Telmo
var mySysId = '34db88576f472a003cf8fb05eb3ee434'; // put in your sys_id here
var table = new GlideRecord('sys_db_object');
table.addEncodedQuery('nameNOT LIKEts_');
table.query();
var i = 0;
while (table.next()) {
var gr = new GlideRecord(table.getValue('name'));
if (gr.get(mySysId)) {
gs.log('it looks like it came from ' + gr.getValue('label'));
gs.log(table.getValue('name'));
break;
}
//if(i > 50) {
//break;
//}
i++;
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2016 08:46 AM
🙂 🙂 what is that sys_id ? Can we consider that as junk .. ??