Schedule Job to run on Dynamic Date Introduced

DianaAndreea
Tera Contributor

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.

2 REPLIES 2

bammar
Kilo Sage
Kilo Sage

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.

Priyanka_786
Tera Guru
Tera Guru

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.

find_real_file.png

Regards,

Priyanka