virtual agent topics show /hide with condition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2024 02:36 AM
Hello All i have requirement in virtual agent topics i want some topics show in sp portal and some are show in esc portal i have tried all the solution which are given in community but none of the any solution working
is there any one who can really solve the issue
this issue is going on and not really find solution for that
@Sandeep Rajput @Mark Roethof @Ankur Bawiskar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2024 02:50 AM
Hi there,
Can you share what solutions you tried? That might help us not repeating the same 😅
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2024 02:53 AM
Okay
(function execute() {
if (vaContext.portal == 'test') {
return true;
}
return false;
})()
here i have one topic name is hello world now i want to show this topic in my test portal and hide from sp portal by doing this it is not working as expected
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2024 04:07 AM
did you try printing what came in logs for vaContext.portal
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2024 04:40 AM
in logs nothing is comming
i tried