Scheduled Script execution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
Hello everyone I am trying to create a scheduled job:
A scheduled job should run and check the end date within the Forescout Pen Test table.
If the end date has passed, the job should set the records to Disposed.
this is my script:
But the status is not updating to disposed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
Hey @LJ_23 ,
even though your question has already been answered I just wanted to add one thing real quick.
You should not name your variable "gr" - instead use a "speaking" name to describe what it is as f.e. "grPenTest"
See also this ServiceNow Knowledge Article about this topic: Best Practice: Why using 'gr' as a GlideRecord variable name in custom scripts is always a bad idea
Cheers
Oli
