• AMCDeveloper
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 10
    Replies

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

 

 

Invoking Apex class using RunApex API.

 

 

We are able to involke the ApexClasses created by the Administrator on the development Org

 

We are NOT able to invoke the Apex Classes installed from a ManagedPackage on the same Org.

 

Does RunApex API support invoking classes installed from a ManagedPackage?

 

Hi,
Getting the following error when tried to access apex class of installed package (managed) using openCti method 'runApex', when my test organisation has an namespace defined in it.
Error "Cannot Load Apex Class: namespace.classname"

Scenario1 :
-> Test organisation contains no namespace.
-> Installed managed package.
runApex('namespace.classname','methodname',paramString) works fine

Scenario 2 :
-> Test organisation contains an namespace 'testnamespace'.
-> Installed managed package.
runApex('namespace.classname','methodname',paramString) doesn't work.


What could be the possible reason for error ?


Thanks
Bhindusaran.v

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

 

 

Invoking Apex class using RunApex API.

 

 

We are able to involke the ApexClasses created by the Administrator on the development Org

 

We are NOT able to invoke the Apex Classes installed from a ManagedPackage on the same Org.

 

Does RunApex API support invoking classes installed from a ManagedPackage?