Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  The "addTransferContext" function fails.

    Posted 04-06-2025 21:35
    Edited by Yurie Ikura 04-06-2025 22:32

    We are using the embeddable framework to interface with an external CRM. We have implemented the "addTransferContext" to add attributes when an inbound call is transferred by an agent to another agent, but it fails. While the call transfer itself is successful, the attributes do not appear on the CRM side. The "enableTransferContext" is set to "true."

    Could you verify if the use of "addTransferContext" in Our Code is correct?

    ■ Our Code:

    window.PureCloud.addTransferContext({
    	attributes: { PT_TransferContext: customerId + "@" + shopKbn }
    });

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

    By the way, I referred to this article, which includes a "name" parameter. Could the failure be due to not setting this parameter?

    Genesys Cloud Developer Center

    ■ GC DevCenter Example:

    window.PureCloud.addTransferContext({
        name: "Case: 1234 - Broken Phone",
        attributes: {example_TransferContext: "1234"}
    });


    #EmbeddableFramework

    ------------------------------
    Yurie Ikura
    Help Desk in Japanese Partner Company
    ------------------------------



  • 2.  RE: The "addTransferContext" function fails.

    Posted 04-08-2025 11:18

    Hello Yurie, 

    I would try adding the name parameter and see if that fixes the issue. I believe that method is expecting the name parameter, and so may not function correctly without it 

    If that doesn't work you could  also try adding your "example_TransferContext" attribute to the "customInteractionAttributes" configuration value as described in this article, and see if that helps: customInteractionAttributes configuration

    Hope this helps! 



    ------------------------------
    Mack Bower
    Software Engineer
    ------------------------------