How can i compare the planned end date time with the current date time in change request and if the current date time is greater than the planned end date time then i need to update the change task 's work notes. (script in Schedule job)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2022 09:31 AM
How can I compare the planned end date time with the current date time in the change request if the current date time is greater than the planned end date time then I need to update the change task's work notes. (script in Schedule job)
- Labels:
-
Service Level Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2022 01:21 PM
You can use a relative GlideRecord query, best (and easiest way) is to use the list view to build your query, and then right click the query string to get the encoded query value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2022 03:09 AM
Hi
what is the correct query to build
how to check if the planned end date time(field in change task form) is greater than the current date time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2022 04:11 AM
Hi Mano,
Here is how you can create this query, once done copy the query and add it your job
Thanks
-Harneet Sital (ServiceNow Certified Technical Architect)
Request you to please mark my answer as helpful or correct based on the impact
Find all my ServiceNow articles here