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
SebiSebi 

Dynamic Method calling?

Is it possible to call methods dynamically?  Something similar to call_user_func() for PHP, or even eval() for all I care at this point.

 

Any suggestions?

jhenningjhenning

Sebi:

 

Take a look at "executeAnonymous", use this call to execute an anonymous block of Apex.

 

SebiSebi
I have seen this in the docs, but as far as I understand it is only used by Javascript? Or can I execute that in APEX class itself?
jhenningjhenning
Unfortunately not with Apex, you can call it through the Web Services API if you are writing a program that runs outside of Salesforce or from javascript if calling from a Visualforce page.