When select custom date in table form i should get the count of the exact date updated record count
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2025 04:22 AM - edited 04-16-2025 09:45 AM
Hi All ,
Hi all,
I’ve built a form in ServiceNow that allows users to:
Select a table (e.g., incident).
Choose a "Last Updated Earlier Than" value — options include predefined ranges like "yesterday", "last week", or a "custom date".
If "custom date" is selected, a date picker shows up, and users can choose a specific date.
Here’s the goal:
A Script Include (getPurgeRecordCount) that returns the count using GlideRecord.
A GlideAjax call from the client script that passes the selected table and date.
When "custom date" is selected, I pass that date to the Script Include as a parameter (select_date)
My question:
How can I modify the Script Include so that it filters only the Updated records on the selected custom date.
When users select a custom date (e.g., April 3), I want the updated record count on that date and selected table (incident) .
Right now, even when I select a custom date, the record count returned includes all records from the table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2025 04:34 AM
So what's the question?
OR
Is this an informative article?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2025 05:01 AM
question:
How can I modify the Script Include so that it filters only the Updated records on the selected custom date
Now I am able to get all record when I select custom date but I need selected date updated record only