How to trigger a scheduled job from a business rule

johannes5
Giga Expert

Hi ServiceNow Community Developers,

Do you know if there is a way to trigger a scheduled job from a business rule. The input to the scheduled job would be the serial number so I would like to pass that along from a business rule. Please advise.

Thanks,

Johannes

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Hi Johannes,



This is an interesting question, and not a typical one at that. Scheduled jobs are normally set to run at a specific time, interval, etc. Business rules run based on a database trigger. They are two different use cases in my mind. What's more, scheduled jobs don't take parameters. It sounds like you might need a script include or something else instead.



Can you tell me more about what you are trying to accomplish? I'd like to understand better what your requirement so I can offer an appropriate solution or options.


View solution in original post

17 REPLIES 17

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Johannes,



Please refer similar discussion in the below thread for more info.


Trigger Business Rule from Scheduled Job


Hi Pradeep,



Thanks for your response.



This is from a schedule job to a business rule though. What I am looking for is from a business rule to a schedule job. In other words when the business rule runs it triggers a schedule job. Is there a way to do that?



Thanks,


Johannes


Sorry, I misunderstood your question. Can you please give more details on this requirement.


Chuck Tomasi
Tera Patron

Hi Johannes,



This is an interesting question, and not a typical one at that. Scheduled jobs are normally set to run at a specific time, interval, etc. Business rules run based on a database trigger. They are two different use cases in my mind. What's more, scheduled jobs don't take parameters. It sounds like you might need a script include or something else instead.



Can you tell me more about what you are trying to accomplish? I'd like to understand better what your requirement so I can offer an appropriate solution or options.