Create Recurring tasks using eventQueueSchedule in servicenow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2024 05:50 AM
Hi All,
I have one requirement where end user wants to create a recurring requests in custom table. For example, if users wants to create recurring request on 1st of every month until Dec 2025, around 14 tasks should be created on first of every month automatically. We are planning to receive input details like start and stop date/time and when it has to be repeated(weekly/monthly/yearly) and until when(specific date) it has to create request.
Currently we are planning to do it using events and script actions but i am still stuck like how to trigger the event and script actions . For getting user's inputs, we are planning to use record producers, since it has to create the request in the custom table. Also, if user doesnt want to create any tasks in the upcoming days, then we are planning to have UI action to get the dates when the request creation should be stopped and sent to event, so that event will not fire on those days.
Can anyone please guide me how I can achieve that and some scripts also, since I doing this activity for the first time.
Thanks,
Aruna Meenakshi S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2024 06:02 AM
Why not use a scheduled Flow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2024 07:12 AM
I am not aware of that, can you please explain me how we can achieve our requirement
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2024 06:13 AM - edited 10-31-2024 06:15 AM
Do a schedule entity generation from a template. We created an application just for this kind of thing, but the concept is the same. 1) Make a template with the information you want, against your table. 2) Create a scheduled entity generation scheduled job.
This solution has the flexibility of allowing someone else to own the template, so if the instructions or nature of the recurring task needs to change they can handle that vs you. Updating the scheduling would defer to your sys admin practice of who has the ability to perform that activity.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2024 07:11 AM
Hi,
If I use scheduled job, can end user able to trigger that? Also, we need to create those requests automatically. Could you please share me more details on creating templates and scheduled entity genaration of scheduled job as this is my first time doing this process.
And also can't I use events to achieve that, please let me know.