Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

SncTriggerSynchronizer.executeNow(schedJob)

Naveen Velagapu
Mega Guru

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 ???

20 REPLIES 20

telmo
Tera Expert

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


okay .., thanks., return value (sys_id) seems strange. not able to figure out whether it is junk or it has any significance.


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++;
      }  


🙂 🙂 what is that sys_id ? Can we consider that as junk .. ??