Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

add user to watchlist with business rule

Not applicable

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