function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Antonio GiraffaAntonio Giraffa 

sforce not defined in test environment, but defined in sandbox

Hi to all, I have an aura component, i developed it in sandbox, and it fully works, if passed to the test environment when I try to open it i've got the following error:
sforce is not defined

The function that is responsible is this:
 
editPanel: function(cmp, evt, helper) {
        var params = evt.getParams();
        if (params.label) {
            sforce.opencti.setSoftphonePanelLabel({
                label: params.label
            });
        }
    },

in the sforce.opencti part,
I tried to import connection.js and apex.js, but still no luck, can anyone help me to find out why this happens?
Thanks in advance, Antonio.
Himanshu.SFDCHimanshu.SFDC
Did you tried with solution provided on link ?:
https://success.salesforce.com/answers?id=90630000000hSctAAE 
Antonio GiraffaAntonio Giraffa
Yes I tried, but it doesn't work..