Skip to main content
user10930's user avatar
user10930's user avatar
user10930's user avatar
user10930
  • Member for 10 years, 4 months
  • Last seen more than 9 years ago
awarded
awarded
awarded
awarded
awarded
awarded
awarded
awarded
awarded
awarded
awarded
awarded
awarded
awarded
awarded
comment
database force commit insert transaction when exception thrown
hi keith.. can u pls tell me how did u format my code in the above question.. whenever i paste some code it doesnt show up or comes misaligned?
Loading…
comment
database force commit insert transaction when exception thrown
Hi sfdcfox, I did what you suggested. Basically insert first and throw in catch block. i see that in debug logs its inserting to the object.. but however end result is i dont see that record in database. we are basically throwing errors because this is backend code and we want to handle the exception in our UI. so I need to throw some exception to UI as well log a record(exception details) in this custom object..
Loading…