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
tulasi ram 1tulasi ram 1 

How to reference a method in anonymous window from a managed package components

I am calling a method from a class which is a component of managed package. I am getting an error like below. But it is working fine in normal org.
User-added image
How we can reference variables and methods in managed package
Best Answer chosen by tulasi ram 1
tulasi ram 1tulasi ram 1
***namespace_prefix***.class.method(args) it worked for me

All Answers

Raj VakatiRaj Vakati
<YOURPACKAGENAMEPSACE__CLASSNAME>.methodName();
aaaaa__nextvalidator.softPhoneDailController();
cvuyyurucvuyyuru
You need to use the apex class with namespace of the package.

Ex: namespace__className
tulasi ram 1tulasi ram 1
Hi @Raj and Charan i am using the below code but i am getting an error.

string result = dialer__Controller.save('abc', 'xyz');
system.debug('result is   '+result);

variable does not exist : dialer__Controller
tulasi ram 1tulasi ram 1
***namespace_prefix***.class.method(args) it worked for me
This was selected as the best answer