- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2022 11:51 PM
Hello All ,
I have a requirement where whenever the user becomes inactive (which means user is marked as active = false) in ServiceNow it should print that date when the user was marked as active = false in the 'Deactivation Date' field which is on the 'sys_user' table .
How can I implement this functionality ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2022 01:22 AM - edited 11-24-2022 01:24 AM
BR condition after update active chnages to false
var gdt = new GlideDateTime();
current.setValue("u_deactivation_date",gdt);
current.update();
if helpful
Mark as helpful
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2022 01:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2022 01:36 AM