scheduled job sys_trigger

jlloyd
Kilo Expert

We are trying to setup a scheduled job that would run over all of the nodes.

We can see in the sys_trigger table that some items had been previously created with all nodes in the system id column.

When creating the scheduled job the option seems to be unchangeable in the sys_trigger table for our scheduled job.

Does anyone know how to make our scheduled job (a script) run over all nodes?

1 ACCEPTED SOLUTION

coryseering
ServiceNow Employee
ServiceNow Employee

Hi Jim,



You are creating the sys_trigger jobs directly, correct? You can go to "/sys_trigger.do?sys_id=-1" to get to the form without going through the record producer.



I just set up two jobs on my instance:


Screen Shot 2015-09-01 at 8.59.30 AM.pngAnd:


Screen Shot 2015-09-01 at 8.59.48 AM.png


And they each ran on their respective node:


Screen Shot 2015-09-01 at 8.59.59 AM.png



I am logged in as a normal admin on my test Fuji instance.



Do you have any additional ACLs on sys_trigger which may be restricting access to that field? Is the "admin overrides" box not checked, on said ACL?


View solution in original post

5 REPLIES 5

Sameep Kodia
ServiceNow Employee
ServiceNow Employee

Can I access the values of the trigger in the java class that I am calling? I need the repeat interval to be passed to my scripted java function. We can access current.runPeriod in sysauto_script but not in sys_trigger.