We use Scripter.queue name a lot and yes if the queue name changes we have to change it in the script as well, where as if we used ID we wouldn't, but name is just easier to use and queue names very rarely change for us.
Having said that my preference recently has been to use booleans instead. So either a boolean passed as input from the flow, or if intent is for it to be used for outbound as well, then I create a dynamic boolean variable, and have it there called something like isSales or isProduct etc essentially isQueueName, add a prefix to the variable name if it helps you search / categorise, and the value is like Scripter.Queue Name == "Sales"
What is nice about this is when reading the action it looks like, If isSales is true, which is so much easier to know what I'm checking. Also really easy and quick to add to a text block in the script to check it's value to see why it behaving the way it is. Just add a text block with {{isSales}} and place a test call. And if I want to group Queues I don't need multiple If statements, just update/create a dynamic variable to Scripter.Queue Name == "Sales" or Scripter.Queue Name == "Product" etc.
Edit: Just some general troubleshooting advice for the specific issue. Add a text block and put in {{Scripter.Queue ID}} and do a test call from the queue, just to confirm the exact value, as Robert suggested, sometimes Genesys removes the dashes, for reasons.... But text boxes are your friend for troubleshooting values and why it isn't going to the right place, using dynamic variables to check boolean checks like in the IF statements is also helpful.
------------------------------
Anton Vroon
------------------------------
Original Message:
Sent: 12-14-2023 07:33
From: Vladimir Chiveri
Subject: Scripting - new page depending on Queue ID
Hello Community!
i'm configuring an inbound script and trying to set an action, that will change the page depending on queue ID.
First i was trying to manage this using the name of the queue but according to best practice this won't work and instead is being proposed to use the queue ID. Still this does not work for me.
I've taken into account the ID with and without @localhost
Does anyone has experience on this topic?
#Unsure/Other
------------------------------
Chiveri Vladimir
Europ Assistance Gesellschaft m.b.H.
------------------------------