Scheduled Script execution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 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
5 hours ago
Hi @LJ_23 ,
From what I can see, your u_end_date field is a date field while in the script while querying the field you have used the gs.nowDateTime() function.
Can you replace it with gs.now() and check whether it works or not.
*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
No this did not work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
@LJ_23 can you please share the choice labels as well as their backend names for status field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
