Tagging not working properly in workspace

AmanPratapS7233
Tera Expert

Hi All,

 

I had a requirement where I have to show the 'email ID' instead of names when we try to tag someone in the comments/worknotes. Added this code in the calculated script in sys_user.name:

if (gs.getSession().isInteractive()) {
    if (gs.action.getGlideURI() != "") {
        if (gs.action.getGlideURI().getMap() != "") {
            if (gs.action.getGlideURI().toString().startsWith("api/now/form/mention/record/")) {
                current.email;
            }
        }
    }
}
 
This works well when I try this in classic UI but, it fails to work properly in workspaces (I tried in CSM workspace and Service Operations Workspace). When I try to search someone, it is not showing proper results.
 
Can anyone help me with one of these:
1. This added functionality should only work in Classic and not in workspace (because workspace by default shows emails).
2. This added functionality should work properly in workspaces as well.AmanPratapS7233_0-1783410337462.png

 

0 REPLIES 0