Timeline for Messaging.SendEmailResult Type cannot be constructed?
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 30, 2018 at 4:25 | vote | accept | Michael Paler | ||
Oct 27, 2018 at 18:14 | comment | added | Michael Paler |
Thanks. I'm trying Messaging.SendEmailError s2 =(Messaging.SendEmailError) JSON.deserialize('{}', Messaging.SendEmailError.class); System.debug('debug: ' + s2); and debug gives 11:11:30.19 (30504543)|FATAL_ERROR|System.UnexpectedException: Salesforce System Error: 377575750-91930 (243059598) (243059598) Frankly, not sure what/how to pass anything to the deserialize step. Will continue banging my head...
|
|
Oct 27, 2018 at 15:54 | comment | added | Pranay Jaiswal | @mpaler these are little hack I found while coding on platform. That being said I dont see why you should not be able to reproduce the SendEmail error. I have not tried to put values in empty JSON so cant say it accepts all. Buy try and let us know if it does. | |
Oct 27, 2018 at 15:00 | comment | added | Michael Paler | Do you think I can do something with this to mock a SendMailResult? Can I put something into that empty json bracket? Very interested... | |
Oct 27, 2018 at 14:53 | comment | added | Michael Paler | Now how the heck was I supposed to find that?? Thank you!! Can I do something similar for Messaging.SendEmailError? | |
Oct 27, 2018 at 12:15 | history | answered | Pranay Jaiswal | CC BY-SA 4.0 |