- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2022 02:29 AM
Hello i have a script thats in script includes, how do i get this into my scheduled job?
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2022 02:38 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2022 02:38 AM
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.