After changing a user name the old name still pops up in collaboration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2016 12:38 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2016 12:34 PM
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);