How to create a scheduled job for recurring tasks?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2015 04:31 AM
I'm trying to create a function that will allow me to automatically run recurring tasks (such as renewing certificates). My idea is to run a scheduled job that checks the task list to see if any of them are due to run on the current day. If yes, then i want it to change the state of the task to open and set a new date for the next day to run the task.
Can anybody help me get this right? I'm a new user of ServiceNow so if you have any good ideas please let me know.
Thanks in advance,
Jens
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2015 08:56 AM
Hi Jens,
are you looking for the script itself to put in the scheduled job?
To work with the scheduled jobs, you may want to look at the following documentation:
Scheduling Events - ServiceNow Wiki
Creating a Scheduled Job - ServiceNow Wiki
System Scheduler - ServiceNow Wiki
Talk:Creating a Scheduled Job - ServiceNow Wiki
In the "Scheduling Events" wiki there is a description of the various ways to schedule actions and activities. You may have the possibility of using events/scripts rather than a scheduled job itself.
The way you described it seems to show that you are considering the scheduled jobs which will run at a specific time and interval. The "Creating a Scheduled Job" wiki can assist you. Do remember that you should first create the definition of the job (where the script will reside) and then you can schedule it in the Scheduler. Those are two different areas of the platform.
I hope this helps.
Let us know if you have any other questions.
Regards
Alexandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2017 12:40 PM
hi Jens,
were you able to achieve this?
Thanks