Retrive URL of site in Virtual agent script

Akshay37
Mega Guru

I have embedded VA on external websites using engagement messenger. Is there any way to retrieve URL of that website in Virtual Agent topic script ? 

2 REPLIES 2

Abhishek Sangem
ServiceNow Employee
ServiceNow Employee

Hi Akshay,

Firstly you need to add the parent window's URL to the iframe URL as a query parameter with "sysparm_" as the prefix (sysparm_url).

 

Then you can get this value within the VA topic script using vaContext.url

Hi Abhsihek,

 

Thank you for your response

We have achieved same with "sysparm_" only but this is applicable only to "chat" feature of engagement messenger not for "home" feature.

Thanks,

Akshay