How do i add a script-include to my scheduled job?

asd22
Tera Contributor

Hello i have a script thats in script includes, how do i get this into my scheduled job?

1 ACCEPTED SOLUTION

Saurav11
Kilo Patron
Kilo Patron

Hello,

You need to use the below syntax to call script include from Scheduled Job

script_include_name().function_name();

You can also refer below thread for the same:-

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

Also we have an out of the box Scheduled Job names 'Autoclose Incidents' which you can also refer.

Please mark answer as correct/helpful based on Impact.

 

View solution in original post

1 REPLY 1

Saurav11
Kilo Patron
Kilo Patron

Hello,

You need to use the below syntax to call script include from Scheduled Job

script_include_name().function_name();

You can also refer below thread for the same:-

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

Also we have an out of the box Scheduled Job names 'Autoclose Incidents' which you can also refer.

Please mark answer as correct/helpful based on Impact.