virtual agent topics show /hide with condition

dheeru_1994
Tera Contributor

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 

5 REPLIES 5

Mark Roethof
Tera Patron
Tera Patron

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

LinkedIn

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 

Ankur Bawiskar
Tera Patron
Tera Patron

@dheeru_1994 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

in logs nothing is comming 
i tried