Inactive User Removal from Notification table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2023 01:51 AM
Hi Team,
We have to remove the inactive users from Notifications(sysevent_email_action) table if multiple users are receiving the notification email (applicable for non-event triggered emails). And if email notification (applicable for non-event triggered emails) is getting sent just to inactive user, then have to remove the inactive user from 'Users' field and make the entire notification as inactive.
We have to implement this requirement using scheduled job. Could you please help me with the script for implementing this scenario.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2023 02:05 AM
Hi @Gayathry ,
Here is the solution which you can adjust as per your requirement.
https://www.servicenow.com/community/developer-forum/remove-inactive-users-from-tables/td-p/2653884
I hope this help.......
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....