Callback function is called twice when a Console App contains both a Call Center and a Custom Console Component with a Canvas App embedded
Last updated 2019-09-07 ·Reference W-6080327 ·Reported By 1 users
Summary
Callback function is called twice when a Console App contains both a Call Center and a Custom Console Component with a Canvas App embedded
Repro
In order to reproduce, we need to have a Canvas App that implements some event handling (the default Java Heroku App actually does that). We also need a Custom Console Component with the canvas app embedded.
Reproducible Steps: (make sure you are on "Classic")
1. Create a Canvas App
- Go to "Canvas App Previewer" to create a Heroku Quick Start app using "Java - Quick Start Template". Note: I found it is easy if you have a Heroku account that is not linked with the "sfdc aloha" team. It is because you could use your API Key to create the app.
- Go to Create -> App -> Connected Apps and edit your newly created app.
- Go to "Canvas App Settings" section, select "Console", and "Open CTI", and move to from "Available" to "Selected". Then "Save".
2.Create a Call Center
- Create a call center XML file similar to the attached XML file. Note: you need to change the "reqCanvasApiName" to match the name of your app api name.
- Go to "Call Centers" and import the attached XML file.
3.Create a Custom Console Component
- Go to "Custom Console Components" and select "new".
- Fill in the name.
- In the "Component Window Settings", select "Canvas App" for the Component and provide the canvas name. Save.
4.Create a Console App
- Go to Create -> Apps -> Apps -> New.
- Follow the screens to fill in the information for the new console app.
- In the "Assign to Profiles", make sure the console app is visible to "System Administrator". Click Save.
- Edit the Console App, and in the "Choose Console Components", select your console component.
5.Open your console app
You should see your custom console app and the CTI labeled "Phone".
Click on "Phone" and go to "Events".
Type in some text and click on "Fire".
In the console you should see the text being fired twice.
Workaround
N/A
Reported By (1)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.