Genesys Cloud - Developer Community!

 View Only

Sign Up

Embedded Client App (Interaction Widget) – Programmatically Select an Interaction in the Agent UI

  • 1.  Embedded Client App (Interaction Widget) – Programmatically Select an Interaction in the Agent UI

    Posted 5 hours ago
    Edited by Rahul Thangaraj 5 hours ago

    Hi, 
    I'm developing an Embedded Client App (Interaction Widget) and would like to know if there is a supported way to programmatically select an interaction in the Agent UI/workspace.

    The Client App SDK method:  ClientApp.conversations.showInteractionDetails(conversationId); 

    opens the interaction details in the analytics workspace, but it does not make the interaction active in the agent workspace.

    While investigating, I traced the internal Agent UI flow and found that interaction selection is handled by the interaction.setSelectedInteraction() service. Calling this from the browser console in the top-level Genesys Cloud page works as expected. However, my embedded application runs in a cross-origin iframe, so due to the browser's Same-Origin Policy, it cannot access the parent application's internal object or services.

    Is there a supported Client App SDK or Platform API that provides the equivalent functionality, or another recommended approach for an Embedded Client App to select an interaction in the Agent UI?

    image


    #EmbeddableFramework
    #PlatformSDK

    ------------------------------
    Rahul
    ------------------------------