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
AMCDeveloperAMCDeveloper 

Open CTI - Issue with RunApex API

Issue Invoking ManagedPackage Apex class using RunApex API.

 

Error "Cannot Load Apex Class: AMCOpenCTINS.UserLoginInfo"

sforce.interaction.runApex("AMCOpenCTINS.UserLoginInfo", "getLoggedInUserInfo", "", getLoginInfoCallback);

 

While at the same time Apex class created by Administrator works fine.

 

sforce.interaction.runApex("amctest", "get123", "", getLoginInfoCallback);

 

Both the Managed Package classes and "amctest" classes and methods are defined as "global" and "webService static" respectively.

 

But the classes defined in Managed Package doesn't work from "runApex" API

 

 

AMCDeveloperAMCDeveloper
Issue Identified: Hope Salesforce would provide some guidance on this.

Issue: Open CTI API (RunApex) doesn’t work with Managed Package Apex Classes on Orgs that have a Namespace defined.

If you have issue with Managed Packages and RunApex, make sure you use an Org that doesn't have Namespace defined.