sforce.opencti api functions do not return any data in lightning
Last updated 2017-10-14 ·Reference W-3883251 ·Reported By 6 users
Summary
sforce.opencti api functions doesn't return any data in lightning when my domain is configured with name which contains character "c".
Repro
1) After installing your lightning Open CTI package
2) From Setup, use the App Manager to create a new Lightning app that uses Console Navigation.
3) Optionally, you also choose to enable Service Setup.
4) Add the Open CTI Softphone to your utility bar.
5) Add the navigation items you want.
6) Assign the app to the user profiles you want to access the app.
7) On CTI click on inspect element, from the browser console,
8) Paste below code in console and press enter
*************************
var callback = function(response) {
if (response.success) {
console.log('API method call executed successfully! returnValue:', response.returnValue);
} else {
console.error('Something went wrong! Errors:', response.errors);
}
};
sforce.opencti.getAppViewInfo({callback: callback});
*************************
9) You will see the response.
10) Now, configure the my domain, which includes character "c" and repeat the steps (7) and (8), you will see no response.
Workaround
Log a case with salesforce support to change the domain name not to contain "c" character then you would be able to get data from the openCTI API functions.
For example, if your domain name is "TestCommunity", you will see the issue. So, you should choose some other domain name, that doesn't include character "c" like, "TestPortal" or "TestBlog" etc.
Reported By (6)
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.