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
StefgStefg 

Can a global remote action be called from outside package?

Hi All,

 

I am trying to use JavaScript Remoting to access an endpoint in a package but it is not working.  Is it possible to access a remote action in a package?  The class and the remote action are both global.

 

I can access remote actions deployed with my code but I can't seem to access those in packages.  Can this be done or am I just doing something wrong with my calls?

 

Many Thanks,

Stefan

Best Answer chosen by Admin (Salesforce Developers) 
digamber.prasaddigamber.prasad

Hi,

 

Looks like issue is with namespace, though not sure if it's possible or not. Below is older post on board:-

 

 

http://boards.developerforce.com/t5/Visualforce-Development/Using-Remote-Actions-in-a-managed-package/td-p/405729

All Answers

digamber.prasaddigamber.prasad

Hi,

 

Looks like issue is with namespace, though not sure if it's possible or not. Below is older post on board:-

 

 

http://boards.developerforce.com/t5/Visualforce-Development/Using-Remote-Actions-in-a-managed-package/td-p/405729

This was selected as the best answer
StefgStefg

It turned out to be a typo in the method name.  You don't get a useful error but it was similar to the namespace issue above.

digamber.prasaddigamber.prasad

Happy that it helped you! Could you please throw KUDO if you think that above helped you.

StefgStefg

Done, thanks