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
‎07-19-2016 01:10 AM
It seems like a bug in the system that whenever a name is changed in user table the same will not get update in Live Profile.
Workaround is manually change in the Live Profile (live_profile.list) table's record or create a business rule on user table update(Name change only) that will update this table as this table has unique record w.r.t each user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2016 12:50 PM
Lokendar,
Can you give any further information on how to accomplish matching the sys_user name to the live_profile document name? I opened a HI ticket, but ServiceNow only stated that it is their fault, their not providing a work-around, and it should be fixed in Istanbul. I've been working on creating an after business rule on the sys_user table, but I'm not getting anywhere.
Thank you for any help you can provide.
Shane
(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("sys_user");
usr.addQuery("sys_id", current.document_id);
usr.query();
if (usr.next()) {
usr.name = current.name;
usr.update();
}
})(current, previous);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2016 05:06 PM
Hi Shane,
Actually this code will go other way, as we manage User Profiles not Live profiles. So whenever name changes in User Profile, update the same in live profile. Use below code.
- (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);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2016 08:16 AM
Lokendar,
This seems like it should be simple, but I am not having any luck. I would like it to where the user record does not have to be updated in order for the live profile name to update as the user records are correct. Do you have advice on how to create a relationship that will auto-force the live profile name to mirror the user name? I created a relationship, but once again, it did not work.
Thank you for your help!
Shane