- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2022 12:47 AM
Hello, is there any way to make a topic visible for specific users and not visible for others?
In details, I need to make it visible if the "company" attribute from the user record has specific value.
Should it be done within topic properties script condition? Is there a kind of variable that can be used (similar to "vaContext.liveagent_portal" one but dedicated to logged in user)?
Regards
Marcin
Solved! Go to Solution.
- Labels:
-
Multiple Versions
-
Virtual Agent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2022 02:20 AM
Hi Marcin,
yes there are options to make it visible for only specific users.
1. Go to VA designer
2. Open topic, go to properties
3. open the script section and paste the value
(function execute() {
if (vaInputs.user.company == 'name of company of sysid')
return true;
else
return false;
})()
if the company name is a reference then pass the sysid or else string value. You can also use getDisplayValue() to get the company name.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2022 02:20 AM
Hi Marcin,
yes there are options to make it visible for only specific users.
1. Go to VA designer
2. Open topic, go to properties
3. open the script section and paste the value
(function execute() {
if (vaInputs.user.company == 'name of company of sysid')
return true;
else
return false;
})()
if the company name is a reference then pass the sysid or else string value. You can also use getDisplayValue() to get the company name.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2022 07:21 AM
Works perfectly fine.
Thanks a lot Murali.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2022 07:28 AM
You've welcome
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
We are currently in Zurich version and this is not working out. vaInputs object itself is not available in Script section within a topic properties. Is there any other way around to achieve this?
