On- deman Scheduled jobs

rm3
Giga Contributor

hi all, can you suggest 1) Where and how On-demand scheduled jobs are used?

2) The various means by which we can call On-demand scheduled jobs.

3) Can we make business rules run through scheduled jobs?

Answer with brief explanation and use cases/ examples would be helpful....

Thanks....

1 ACCEPTED SOLUTION

Priya Shekar
Giga Guru

Also you can run the scheduled jobs daily,monthly,weekly, periodically as per your requirement.

But the on demand scheduled jobs will run only if you manually execute.

Others will run automatically based on your scheduled time.

If my reply has helped you,Kindly click the Helpful button.
If my reply is the answer you were looking for, Kindly click the Accepted Solution button.

Thanks,
Priya

View solution in original post

3 REPLIES 3

Priya Shekar
Giga Guru

Hi,

Ondemand scheduled jobs will run only if you manually execute the scheduled job.

Business rules will run based on a table's operation like insert,update,delete,query.

The code which you have in the business rule can be placed in a scheduled job i.e Scheduled script execution.

If my reply has helped you,Kindly click the Helpful button.
If my reply is the answer you were looking for, Kindly click the Accepted Solution button.

Thanks,
Priya

Priya Shekar
Giga Guru

Also you can run the scheduled jobs daily,monthly,weekly, periodically as per your requirement.

But the on demand scheduled jobs will run only if you manually execute.

Others will run automatically based on your scheduled time.

If my reply has helped you,Kindly click the Helpful button.
If my reply is the answer you were looking for, Kindly click the Accepted Solution button.

Thanks,
Priya

Just to add on Priya's Answer(which is absolutely right on all accounts)

You can execute ondemand scheduled job via server side script too, eg business rule or script include

for More Details: https://www.servicenowguru.com/scripting/execute-scheduled-jobs-script/

 

-Anurag

-Anurag