Input reference across topics.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2022 10:14 AM - edited 12-14-2022 03:27 AM
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2022 07:22 PM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2022 10:11 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2022 01:34 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2022 09:54 AM
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.