Timeline for How to Dynamically cast the type of an 'Object' in apex at runtime
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 6 at 16:11 | vote | accept | SouthJoe | ||
Jan 11 at 10:03 | comment | added | Keith C | @SouthJoe I've added a PS to my original answer that I hope helps. | |
Jan 11 at 10:01 | history | edited | Keith C | CC BY-SA 4.0 |
added 553 characters in body
|
Jan 10 at 12:52 | comment | added | SouthJoe | I'm sorry for the confusion; I saw that I did not post the correct example of what I'm trying to do; yes, the last getType returns a Schema.DisplayType, but I was trying to get the string value and pass it down to the forName method of the Type class. This is constantly breaking on the type casting. | |
Jan 8 at 10:42 | history | answered | Keith C | CC BY-SA 4.0 |