Hi @Anna Mazor,
Genesys documents Scripter.Consult Transfer as supporting a queue directly, so you may not need to use a custom API/Data Action to perform the transfer if the native action can be configured with the required queue.
A few things I would recommend checking:
1. Verify the agent's permissions
For consult transfers to a queue, check that the agent has:
Conversation > Communication > consultTransfer
Conversation > Communication > consultTransferQueue
Routing > Queue > View
Routing > Queue > Search
In particular, consultTransferQueue is required for consult transfers to queues.
2. Confirm the queue ID is actually being returned
If you continue using the Data Action to resolve the queue ID, I would first verify that the action completes successfully and that the resulting queueId is populated before the Scripter.Consult Transfer action is triggered.
You could temporarily display/log the selected queue name and resolved queue ID to confirm the value being passed to the transfer action.
3. Check the browser console and Network logs
If the queue ID is populated but the consult transfer still doesn't execute, I would capture:
- Browser console errors
- Network requests/responses
- Exact timestamp and timezone
- Conversation ID
- Participant ID
- Queue ID
- Script action being executed
- Any HTTP error/status returned
- Agent permissions, particularly
consultTransferQueue
Also make sure the consult transfer is being triggered after the agent has actually answered/connected to the interaction.
There is also a relevant Genesys Community discussion regarding consult transfers initiated from scripts: Consult Transfer via Script | Genesys Cloud Community
4. Test the native action with a fixed queue
Before troubleshooting the dynamic Data Action, I would test the simplest scenario:
Agent answers call → Scripter.Consult Transfer → hard-coded known queue
If that works, then introduce the Data Table and dynamic queue lookup. This will help isolate whether the issue is with the consult-transfer action itself or with the dynamic queue ID resolution.
Also, if the only reason for using the Data Action is to obtain a queueId, it may be worth checking whether the native Scripter.Consult Transfer action can consume the queue directly. Genesys documents the action as supporting Queue, User, and Interpolated Text destinations.Available script actions - Genesys Cloud Resource Center
Hope this helps
------------------------------
Akhil
------------------------------