How to show a message if a user is a VIP in Agent Workspace

Susan Davidson
Giga Guru

How do i make a message show on the agent workspace if a user who is selected in the caller_id field has their vip field checked on the user record.

 

i created an on change client script (see below)

It does nothing. I have tried unchecking the isolate script and the global options and it still doesn't show a message when a vip user is selected.

Where did i go wrong?

 

find_real_file.png

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

try this

if(ref.vip.toString() == 'true')

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

try this

if(ref.vip.toString() == 'true')

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

thank you so much. This has been driving me crazy all night cause i just couldn't figure out where i went wrong and all cause i forgot to convert to a string. I appreciate the help

@Susan Davidson 

Glad to help.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Murthy Ch
Giga Sage

@Susan Davidson 

Uncheck the Global checkbox and give the view name as workspace

Thanks,
Murthy