Can't get call event when Calling on New Interaction View

I'm trying to catch event when I click on Call button in an New Interaction View, but I can't find it.

image

I need to get it, like in other interactions who call clicToDial method (framework.js), because I want to pass phone number and an specific queueId.

    window.addEventListener('message', function (event) {
      try {
        var message = JSON.parse(event.data)
        if (message) {
          if (message.type == 'clickToDial') {
            window.PureCloud.clickToDial(message.data)

Is in this case a different method?

Can I please get a response on this?

Thanks.

The events you can subscribe to are documented here: https://developer.genesys.cloud/platform/embeddable-framework/actions/subscribe. You can't generally hook into arbitrary click events, but you may find one of the documented events can meet your need.

1 Like

I finally did a workaround with "clickToDial", but thanks anyway.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.