System is adding using name automatically in Watchlist

Community Alums
Not applicable

Hi All,

I have an issue, when user raise an incident system is adding his name in watchlist 3 times instead of one time and system is sending same mails 2 times when he add additional comes. Could you please help how to resolve this issue.

 

Thanks!

 
 

 

24 REPLIES 24

SP22
Mega Sage
Mega Sage

Hi @Community Alums 

Can you please check system properties where the user sys_id is added thrice.
Check business rule or client script related to incident table.

Thanks
SP

you are adding user to the watchlist, you just have to check if the user is already added, if so then don't add again.

Something like this

 

var list = current.watch_list.toString();
if(list.indexOf(''+user_sys_id)==-1)
{
var arr = list.split(',');
arr.push(user_sys_id);
current.watchlist = arr.join(',');
}

 

Took the ref from last screenshot you added, use the same logic

 

-Anurag

Community Alums
Not applicable

..

Community Alums
Not applicable

Can you please provide me the properties name

 

Thanks

No worries, this has nothing to do with properties at all.

You should be good by changing the two BR's you found.


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.