Schedule Job to run on Dynamic Date Introduced
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 06:31 AM
Hey guys,
My request sounds like this: User introduce Date in a catalog item and based on the date entered, a job is scheduled to run on that specific date. Basically, schedule a job on a dynamic date from script as I want to trigger it from a custom action. Is there any way I can trigger this with some parameters or any other ideas of how can I do that?
I'm new to ServiceNow so I would appreciate any help given or at least other sources.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 07:03 AM
Another approach but still using Scheduled Job.
You can create a scheduled Job that runs a script once a day- to query the Open records and check if the Date in the Field Matches TODAY- if it does run the script. This way the same script can handle multiple a day or none. It just checks every night for the records that qualify.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 07:25 AM
Hi,
For your requirement, you can create a scheduled job of type Automatically run a script of your choosing
select run as daily and make conditional check box true, in condition box you can define your script logic . Please mark my answer helpful/correct if it helps you.
Regards,
Priyanka