output is not displaying on Background script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2026 01:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2026 08:52 AM
Hi @neelamallik,
You can add gs.info(gr.getRowCount()); after the query() to check whether any records match your criteria. If the count is 0, there are no draft records to delete, which is why you’re not seeing any output.
If my response helped, please mark it as the accepted solution so others can benefit as well.
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I am having the same issue in last two days. There is something wrong with the SN Tools extension. I have checked the sys_id in my code and it is correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
You can write gs.print(gs.display_name)
And check it is working or not

