I'm looking for a way to get the name of an object instance at run-time. Is it possible to to determine the class name (as a string) of an instance? i.e. is there an Apex equivalent of the Java myInstance.getClass().getName() or any tricks to achieve just that?
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
Voting for the idea Method to get the Type of an Object (also Primitive Type not only SObject) would be a good long term solution.