Add caller to Watchlist
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 01:13 AM - edited 01-22-2024 01:25 AM
In the Incident if the "Caller" name is changed to different Caller then add the previous caller & logged in user to "Watch list".
How to do this via business rule, dot walking or client script or any other methods?
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 04:53 AM
Write a Before Business Rule with Update Checked on the When to run tab
Also on the When to run tab add Filter Condition Affected End User is not empty
On the Advanced tab add this to the Script field.:
(function executeRule(current, previous /*null when async*/) {
if(current.caller_id!=previous.caller_id) {
if (current.watch_list == ''){
current.watch_list += previous.caller_id;
} else {
current.watch_list += ',' + previous.caller_id;
}
}
})(current, previous);
***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***
Regards
Paul
Regards
Paul