You need to sign in to do that
Don't have an account?
Steven Houghtalen
how to call a method from execute anonymous
Hi, I am having trouble calling a method from execute anonymous windew. I must be missing something simple as documented examples look similar. I developed a very simple case to demonstrate.
Here is what I place in the window.
TestX();
I click on execute and the error message is: Method does not exist or incorrect signature: TestX()
The apex class is as follows:
public class TestX {
Public Static void TestX(){
integer x;
x=7;
}
}
Here is what I place in the window.
TestX();
I click on execute and the error message is: Method does not exist or incorrect signature: TestX()
The apex class is as follows:
public class TestX {
Public Static void TestX(){
integer x;
x=7;
}
}
TestX.TestX();
ClassName.StaticMethodName();
Let us know if this will help you
All Answers
TestX.TestX();
ClassName.StaticMethodName();
Let us know if this will help you