Input reference across topics.

DrDinu
Tera Contributor

Hello all,

 

I'm currently trying to send a reference from the queue table (awa_queue) to the next topic in line to check the schedule and agents availability. Simply trying to send a queues value, through the Start Segment of the topic to run some scripts on the next topic.

 

The issue is that I keep getting undefined when I try to access the data, so far this is the script that I'm using to check if I'm receiving anything:

 

 

 

(function execute() {

gs.info(vaInputs.queuename.name + " " + vaInputs.queuename+ " " + vaInputs.queuename.getDisplayValue());

return;
})()

 

 

 

This is the result from the logs:

Information - sn_hr_va - undefined null

 

Not sure if i'm missing to cast anything or instantiate.

 

EDIT: I've tried with the user table and it's working, the sys_id get passed over but no success with the awa_queue table, tried adding ACLs and xScope permission as well, no success.

 

Thanks!

4 REPLIES 4

SuhasPSalunkhe
Kilo Guru

1. Can you please check wether you get the value of vaInputs.queuename.name / vaInputs / vaInputs. queuename

 

May be you will get something step by step.

 

Richard Kiss1
Kilo Guru

Hi DrDinu,

 

Variables defined in a topic (including vaInput and vaVars variables) are accessible only in the topic they are defined in. They do not get transferred between topics.

 

Chat context (Live Agent) variables on the other hand exists through the whole conversation. You can use them to transfer information from one topic to another.

 

How to define a Live Agent variable

 

Just make sure that you select the Live Agent variable on the properties tab of the topic so it is listed in the variables panel.

 

Richard

So in this case, whats the point on the start segment to set an input variable as required from the calling topic? I thought that would be a way to pass the value/info.

Screenshot 2022-12-14 at 09.23.23.png

That is a topic block. Topic blocks can only be called from a Topic and they are configured to have access to those calling topic variables.