- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-05-2015 11:06 PM
Hi all,
I want to disable notification for all users for Temporary purpose. Anyone can suggest me , how to achieve this using Script.
Thanks & Regards
Govind Kumar Sharma
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2015 01:00 AM
Help me understand this.
Why do you need to write a script when you can do this by simply unchecking the checkbox?
Or just navigate to user table and add the 'Notification' field to list view. Double click on notification field and select 'Disable' for a record. Now right click on the header and click 'Update All'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2015 02:18 AM
Hi Kalai/Gurpreet
I tried and found that we can also achieve this using background Script too
var rec = new GlideRecord('sys_user');
rec.addQuery('notification',2);
rec.query();
while (rec.next()) {
rec.notification = 1;
gs.print('UserName ' + rec.user_name);
rec.update();
}
Thanks & Regards
Govind Kumar Sharma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2015 03:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2015 04:07 AM
I tried this for learning purpose Kalai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2016 09:28 PM
did u write a business rule for this? i have a similar requirement.