- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2023 04:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2023 05:33 AM
Hi @Abhishek Kathe,
Please find the filter that we need to apply to get the incidents created 10 days ago from now.
Query = sys_created_onRELATIVEGT@dayofweek@ago@10
Please Click helpful if you got the answer.
Kind Regards,
Prasanna

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2023 05:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2023 04:26 AM
Try below bg script:
var gr = new GlideRecord('incident');
gr.addEncodedQuery('sys_created_onRELATIVEGT@dayofweek@ago@10');
gr.query();
while(gr.next()){
gs.info(gr.number);
}
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2023 04:27 AM - edited 09-18-2023 04:27 AM
Hi there,
Can you explain a bit what you are really after? Is it that you tried scripting something, and you are receiving an error? Is it that you are searching for a solution for a certain question, and might this not be a good solution actually? Or is it that you have no scripting knowledge and wanting to learn from this?
Based on that, we actually can really help you instead of just pasting some script here which also might not be a good solution.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2023 05:33 AM
Hi @Abhishek Kathe,
Please find the filter that we need to apply to get the incidents created 10 days ago from now.
Query = sys_created_onRELATIVEGT@dayofweek@ago@10
Please Click helpful if you got the answer.
Kind Regards,
Prasanna