Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

What is Database.SaveResult for retrieving all the validation errors?

Asked by Asutosh Jha Aug 24, 2023 1.1K views 1 answer
Share

About this question

 I want to get all the validation error messages from the Apex class to the lightning component. When I got one error message while using DMLException, I tried to use Database.Save result. After the successful update, without any validation error, I get the message that shows successfully updated. But I find nothing in the toast for the records with validation errors. Can anyone help me understand what I am missing out on? 

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.