- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2022 10:21 PM
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2022 10:36 PM
Hi,
try this
if(ref.vip.toString() == 'true')
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2022 10:36 PM
Hi,
try this
if(ref.vip.toString() == 'true')
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2022 10:41 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2022 10:49 PM
Glad to help.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2022 10:38 PM
Uncheck the Global checkbox and give the view name as workspace
Murthy