Display a messgae on load if requested for is a VIP user (need to be bold and italic)

cheerla Nithin1
Kilo Explorer

Hi All,

please help me on the above question by using business rule

10 REPLIES 10

jazmin
Tera Contributor

BR

before

update/insert 

 

(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);