Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to run business rule on specific interval from scheduled job

Jaqen
Kilo Contributor

I have a business rule and want to trigger it on specific interval using scheduled job. Can anyone tell how to achieve this functionality. 

1 ACCEPTED SOLUTION

Ashwini Suryava
Kilo Guru

Hi,

Yes, you can trigger business rule from a scheduled job. In a scheduled job, a 'Job context' field is present in which it needs to call with business rule


Refer to the below link for more information,

https://community.servicenow.com/community?id=community_question&sys_id=eca1c769db98dbc01dcaf3231f96...

https://community.servicenow.com/community?id=community_question&sys_id=39cebaa5db58dbc01dcaf3231f96...

 

Mark correct or helpful based on the response.

Regards,

Ashwini.

View solution in original post

4 REPLIES 4

Ashwini Suryava
Kilo Guru

Hi,

Yes, you can trigger business rule from a scheduled job. In a scheduled job, a 'Job context' field is present in which it needs to call with business rule


Refer to the below link for more information,

https://community.servicenow.com/community?id=community_question&sys_id=eca1c769db98dbc01dcaf3231f96...

https://community.servicenow.com/community?id=community_question&sys_id=39cebaa5db58dbc01dcaf3231f96...

 

Mark correct or helpful based on the response.

Regards,

Ashwini.

vinothkumar
Tera Guru

Check for incident autoclose scheduled job in your instance for example model.

Alikutty A
Tera Sage

Hi,

You need to create a schedule item in the sys_trigger table and add then add the following line in Job context field

fcScriptName=Your_Business_Rule_Name_here

And setup the required schedule

Community Alums
Not applicable

Thanks!