How to get catalog item link ?

Pavan Kumar28
Tera Contributor

Hi all,

We have a requirement to obtain the link for the selected catalog item in the virtual agent chatbot. Can anyone please guide me on how to achieve this?. Attaching the snip which I configured.

PavanKumar28_0-1710154277985.png

 

Thanks and regards,
Pavan Kumar Gosani.

1 ACCEPTED SOLUTION

return vaVars.baseUri + vaVars.portalName'?id=sc_cat_item&sys_id=' + vaInputs.catalog_item_id1;

 

Did you add a Script variable that sets the two bolded items?

BaseUri we are using 

(function execute() {
return gs.getProperty('glide.servlet.uri');
})()
 
portalName we have the below , 
 
(function execute() {
if (vaContext.deviceType == 'ios' || vaContext.deviceType == 'android')
return 'mesp';

return gs.getProperty('sn_itsm_va.com.snc.itsm.virtualagent.portal_url');
})()
 

View solution in original post

6 REPLIES 6

return vaVars.baseUri + vaVars.portalName'?id=sc_cat_item&sys_id=' + vaInputs.catalog_item_id1;

 

Did you add a Script variable that sets the two bolded items?

BaseUri we are using 

(function execute() {
return gs.getProperty('glide.servlet.uri');
})()
 
portalName we have the below , 
 
(function execute() {
if (vaContext.deviceType == 'ios' || vaContext.deviceType == 'android')
return 'mesp';

return gs.getProperty('sn_itsm_va.com.snc.itsm.virtualagent.portal_url');
})()
 

Hello @Lynda1,

Thank you for your valuable information; it is really helpful for me.

Regards,
Pavan.