Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Consult transfer to queue via Script and Data Action failing

    Posted 09-30-2026 08:58

    Hi team,

    We are trying to perform a consult transfer to a specific queue directly from an agent script, but the transfer/dialing fails to execute.

    The current flow is as follows:

    1. The agent selects a queue name from a dropdown list (populated from a data table).

    2. Since consult transfer requires a queueId, we trigger a Data Action / API call to resolve and fetch the queueId based on the selected queue name.

    3. The script attempts to initiate the consult transfer using the retrieved queueId.

    However, the call is not being placed.

    Does anyone have insights into what might be causing this issue or what best practices/logs we should check?

    Thanks in advance!


    #DataActions
    #Scripts

    ------------------------------
    Anna Mazor

    ------------------------------


  • 2.  RE: Consult transfer to queue via Script and Data Action failing

    Posted 09-30-2026 09:21

    A common thing to verify is whether the script is actually receiving and passing the queue ID, not just the queue name, to the transfer action.

    A few things I'd check:

    • Confirm the Data Action returns the exact queueId and that the script variable contains the expected GUID.
    • Validate that the agent has permission to transfer to the target queue.
    • Test with a hardcoded queueId first. If that works, the issue is likely in the Data Action response mapping or variable binding.
    • Check whether the transfer control in the script supports consult transfers to queues in your specific implementation. In some cases, custom scripting with the Platform API is required.
    • Review browser developer tools (Network tab) and interaction details to see if the transfer request is being generated and whether an API error is returned.

    I'd also recommend sharing:

    1. The transfer method being used in the script.
    2. A sample Data Action output.
    3. Any errors visible in the browser console or Network tab.

    That should help narrow down whether this is a data-mapping issue, permission issue, or a limitation of the transfer mechanism being used.



    ------------------------------
    ------------------------------
    Leonardo Correa,
    Architect Developer.
    ------------------------------[
    ------------------------------



  • 3.  RE: Consult transfer to queue via Script and Data Action failing

    Posted 09-30-2026 09:31

    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
    ------------------------------



  • 4.  RE: Consult transfer to queue via Script and Data Action failing

    Posted 09-30-2026 09:46

    Hi Anna!

    I think Leonardo and Akhil already gave you a LOT of information, so the solution is probably there already.

    But I just wanted to mention 1 thing that they didn't.

    Make sure your agent actually has permissions to run Data Actions in general (Look up data from an external source in scripts - Genesys Cloud Resource Center):

    According to the documentation above: 

    • Agents need the permissions: Integrations > Action - View, and Bridge > Actions - Execute.

    Without the appropriate permissions, the data action to retrieve the queueId will fail.



    ------------------------------
    Marcello
    Senior PS Consultant
    ------------------------------



  • 5.  RE: Consult transfer to queue via Script and Data Action failing

    Posted 09-30-2026 10:09

    Hi everyone, thanks for all the great suggestions so far!

    We tested a few things based on your feedback, but we are still stuck. Here is where we stand:

    1. Hardcoded ID: We tried using a hardcoded queue ID, and unfortunately, that did not work either.
    2. Permissions & Native features:
      • We can successfully transfer to an external phone number (using an interpolated text field).
      • Agents can perform a consult transfer using the native Genesys toolbar located above the script.
      • We double-checked the agent's permissions, and it seems they already have all the necessary permissions. Which specific permissions do you think we might be missing?
    3. The Native Action limitation: The suggestion to use the native action directly doesn't fit our use case. The native action requires selecting a static queue from a dropdown during the script design/development phase. However, our goal is to allow agents to select a dynamic queue at runtime, where the queue is determined dynamically.
    4. Data Action status: We are successfully retrieving the queue ID via the Data Action, and we can actually display/print it inside the script text field for testing purposes to verify we are getting the correct data.

    So, our core objective is: To successfully initiate a consult transfer to a queue dynamically, where the queue ID is passed into the script via a Data Action (and is not known in advance).

    Since hardcoding the ID also failed, does anyone have an idea what might be blocking the consult transfer specifically to a queue via script, or how to properly bind a dynamic queue ID to the transfer action?

    Thanks again for your help!



    ------------------------------
    Anna Mazor

    ------------------------------



  • 6.  RE: Consult transfer to queue via Script and Data Action failing

    Posted 09-30-2026 11:25

    Hi Anna,

    Just to make sure the issue is actually on the script/agent side:

    Have you tested the Data Action in isolation?
    I mean, if you have an agent with an interaction, can you just run the data action by yourself (through the data action menu), and actually complete the transfer?

    I don't recall the API for initiating a consult transfer, so if you can share it with us here, we might take a look if the API is properly set in the Data Action, etc. (In case it's not working when you test it by itself)



    ------------------------------
    Marcello
    Senior PS Consultant
    ------------------------------



  • 7.  RE: Consult transfer to queue via Script and Data Action failing

    Posted 10-01-2026 00:16

    The problem has been resolved. Thanks for all the help.



    ------------------------------
    Anna Mazor
    CEO
    ------------------------------



  • 8.  RE: Consult transfer to queue via Script and Data Action failing

    Posted 10-01-2026 04:58

    @Anna Mazor,

    Glad to hear you got it resolved! 😊

    Would you mind sharing what the root cause was and what ultimately fixed it? I'm sure others following this thread would benefit from understanding what was blocking it and how it was resolved.

    Thanks in advance!


    ------------------------------
    Akhil
    ------------------------------



  • 9.  RE: Consult transfer to queue via Script and Data Action failing

    Posted 10-02-2026 06:47

    The issue was caused by a misconfiguration of the specific queue to which the transfer was attempted.



    ------------------------------
    Anna Mazor

    ------------------------------