Having trouble finding the links generated in Dynamic Greeting Topic

Wardma
Tera Guru

Im having trouble modifying the link in the Get Open Tickets node which ultimately comes down to the Open Tickets Script. After I append the link, vavars.portalname); to vavars.portalname + '?id=thepageiwant'); it attempts to go to the page and still adds %3Fid%3Dmy_requests to the URL for some reason. I want to remove the my_requests from my URL and add where I want the end user to end up. Any idea where I can get this to go where I want it?

1 ACCEPTED SOLUTION

Loudigi
Kilo Sage

Check the Service Portal -> Page Route Maps. There could be a page route entry that will override anything ment for my_requests. Also, can you share your code for Open Ticket Script that generates the links?

View solution in original post

7 REPLIES 7

Loudigi
Kilo Sage

Check the Service Portal -> Page Route Maps. There could be a page route entry that will override anything ment for my_requests. Also, can you share your code for Open Ticket Script that generates the links?

Hello Loudigi, 

Ive posted a new thread and should probably close this one. The code is in the new thread. 

 

Need Help Editing and Finding the links generated ... - ServiceNow Community

Also, I checked the page route maps, by disabling the page route maps to determine what part of the script was generating the my_requests page route map isn't having any effect on the script. Standard out of the box Dynamic Greeting, no modifications to the current out of the box script still redirects to my_requests for the virtual agent link '# open requests'.

This is the current OOTB script. 

 

(function execute() {
    vaVars.open_ticket_count = new global.VATopicsHelper().openTicketsCount(vaContext.deviceType);
vaVars.open_ticket_info =new global.VATopicsHelper().openTicketsInfo(vaContext.deviceType, vaContext.getRequesterLang(), vaVars.portalName);
})()