add user to watchlist with business rule
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 02:15 PM
Hello everyone,
Does anyone know how can I archive this: When the caller id changes, change the watch list to the caller manager?
I was trying with this code:
(function executeRule(current, previous /*null when async*/) {
var calleruser = current.caller_id;
var newmanager = calleruser.manager;
if(current.caller_id !== ''){
current.watch_list = newmanager;
current.update();
}
})(current, previous);
0 REPLIES 0