Hiding Topics based on Portal in Virtual agent topic picker

Anusha Dande
Tera Contributor

Hi 

we got new requirement to make Virtual agent bot visible from servicenow to third party application but few topics should be hidden in third party applications

And we are trying to hide few topics using below code, but we are having below issues

1.It is not going to else part

2.Also, is  "vaContext" servicenow specific ? It will work for topic hiding on third party using "vaContext"

Any suggestions really helps

 

if(vaContext.portal == 'sp'){
gs.addInfoMessage('Testing VA portal Inside SP');
return true;
}
else
{
gs.addInfoMessage('Testing VA portal not sp');
return false;
}
5 REPLIES 5

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Any follow-up needed? Or was my answer sufficient?
Let me know.

If your question is solved, please close the topic by marking my answer as correct. This will help others searching for a similar question and will remove the topic from the unsolved list.

Kind regards,
Mark
2020-2022 ServiceNow Community MVP
2020-2022 ServiceNow Developer MVP

---

LinkedIn
Community article, blog, video list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn