PureConnect

 View Only

Discussion Thread View
  • 1.  Watching a Queue for Interactions Example Code not working

    Posted 05-01-2019 10:10
    Edited by Jonathan Knop 05-01-2019 12:06
      |   view attached
    Using Interaction Connect Add-ins, I am trying to get the Queue listen example to work. Below is my main.js code. The ININ.Addins.version and ININ.Addins.environmentType console.log calls are working. However when I place a call from my cell phone to my dev phone, the interactionAdded is not being fired. Am I doing something wrong. . I have attached my main.js file.

    #Unsure/Other #InteractionConnectAdd-ins

    ------------------------------
    Jonathan Knop
    Senior Market Sales, Inc.
    ------------------------------​

    Attachment(s)

    js
    main.js   538 B 1 version


  • 2.  RE: Watching a Queue for Interactions Example Code not working

    Posted 05-01-2019 12:56
    I got this working now. I had to add a call to subscribe. For those facing similar issues in the future here is the necessary code to add.

    queue.subscribe({
    queueIds: [{
    type: ININ.Addins.IC.Queues.queueTypes.system,
    name: ININ.Addins.IC.sessionInfo.userId
    }],
    attributeNames: [
    "CUSTOM_ATTRIBUTE",
    ININ.Addins.IC.Interactions.attributeNames.interactionType
    ]
    });

    ------------------------------
    Jonathan Knop
    Senior Market Sales, Inc.
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources