In incident form can you check whether a caller is VIP or not without using getReference() i

jazmin
Tera Contributor

This is the correct answer 

 

BR

WHEN: Before

Insert/ update 

 

 

(function executeRule(current, previous /*null when async*/ ) {

    if (current.caller_id.vip == true) {//get the value of the caller Id

        gs.addInfoMessage('CALLER is VIP');// show infomessage which confirm that the caller is VIP

    } else {

        gs.addErrorMessage('Is not VIP');//show infomessage which confirm that the caller is not VIP

    }

})(current, previous);

1 REPLY 1

Zach Koch
Giga Sage

Are you looking for assistance regarding this info? Not sure what your question is.