After changing a user name the old name still pops up in collaboration

nukeman
ServiceNow Employee
ServiceNow Employee

After changing a user name the old name still pops up in collaboration like chat, live feed.... Already did a cache.do do without success. Anyone know if there is a temporary table/cache?

Thanks in advance

5 REPLIES 5

Lokendar,



      I went with the design below and everything worked.   Thank you very much for your help!



Shane




**BUSINESS RULE**



Name: Update Name from User Table


Table: User [sys_user]


When to run: After; Insert; Update; no conditions


Advanced: (no condition)




(function executeRule(current, previous /*null when async*/) {



// Copy the name from the sys_user table to the live_profile name field


var usr = new GlideRecord("live_profile");


usr.addQuery("document", current.sys_id);


usr.query();


if (usr.next()) {


usr.name = current.name;


usr.update();


}


})(current, previous);