Create a schedule job for request item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2024 03:53 AM
I need help! How do I do this task?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2024 04:11 AM
ok lets consider the end time to perform is a date time field
so you will be doing a scheduled job like
var req = new GlideRecord('sc_req_item');
req.addencodedQuery('<yourfieldvalue_here>ONToday@javascript:gs.beginningOfToday()@javascript:gs.endOfToday()');
req.query();
while(req.next()){
gs.eventQueue.......
}
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2024 04:12 AM
Thanks! But in this window I do it? And how do I make a condition that every 7 AM it is carried out? The end field is a field I created
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2024 04:14 AM
yes ur right just set the time as 07 and your done ! this will run the job every day at 7am
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2024 04:19 AM
But I didn't understand the code: I need the following condition if yes then need to send notification to the admin group, and how do I do it in the code you wrote down for me, can you write it down for me more clearly?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2024 04:53 AM
I did everything it doesn't work