In Output screen unable to see any script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
var gr = new GlideRecord('incident');
gr.addEncodedQuery(
'sys_created_onONToday@javascript:gs.beginningOfToday()@javascript:gs.endOfToday()'
);
gr.query();
Can anyone please tell me what is wrong with this script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Also you are only querying not leveraging the queried records so in database the records are only filtered out by your script..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I didn't understand can you explain more briefly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
@neelamallik
If I am not correct you are not using output statements in script to log or print your results.
Try to use gs.print() or gs.log().
Best Regards
Sankalp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
where are you using this script?
Are you sure your query is correct?
You can form your query using filter condition and then use Copy Query and then use it in encoded query
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
