- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2023 03:39 AM
Is there any way to restrict a HR Topic in the Virtual Agent based on a specific country or a specific role or both??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2023 03:40 AM
If you want to do the restriction in global scoped virtual agent topic you can just go to VA Topic>Properties>Advanced Properties>context>script and use vaInputs as shown below to get the user table data and keep all the required conditions of your choice.
But when you consider a HR virtual agent Topic vaInputs doesn't work in HR scope so you need to glide through tables and get required data and use it to put conditions.
Here I am attaching a sample code to restrict RU user, contractors, and a role
FYI. getRecord() object doesn't work across applications so avoid using it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2023 03:40 AM
If you want to do the restriction in global scoped virtual agent topic you can just go to VA Topic>Properties>Advanced Properties>context>script and use vaInputs as shown below to get the user table data and keep all the required conditions of your choice.
But when you consider a HR virtual agent Topic vaInputs doesn't work in HR scope so you need to glide through tables and get required data and use it to put conditions.
Here I am attaching a sample code to restrict RU user, contractors, and a role
FYI. getRecord() object doesn't work across applications so avoid using it.