Filter condition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2024 06:04 AM
How to get list of records where end date is not more than 14 days from current date?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2024 06:07 AM
Here is a sample script for change request, you can change the table/field names as needed.
var records = new GlideRecord('change_request');
records.addEncodedQuery('end_dateRELATIVELT@dayofweek@ahead@14^end_date>=javascript:gs.beginningOfToday()');
records.query();
while (records.next()) {
//records.getValue('number'));
//do whatever
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2024 06:09 AM
Hi,
Can you show me the condition in filter of the list.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2024 06:14 AM
Something like this,
You can always modify the filter to get the result you need.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-29-2024 01:06 AM
is this thread answered @Rosy14