I want to print the deactivation date when the User is inactive in Firm

Pooja Khatri
Tera Contributor

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  ? 

 

 

2 ACCEPTED SOLUTIONS

saran4
Kilo Guru

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

View solution in original post

Sumit Singh
Tera Expert

Hi @Pooja Khatri 
You can try this
Create a BR on sys_user table like this

 

brs.pngbr.png

View solution in original post

5 REPLIES 5

Sumit Singh
Tera Expert

Hi @Pooja Khatri 
You can try this
Create a BR on sys_user table like this

 

brs.pngbr.png