You need to sign in to do that
Don't have an account?

How to get the failed to update record ids
Hi ,
I Have list of 10 accounts which i need to update out of that 10 records 5 records get updated and 5 records get failed to update due to validation rules ,Is there a way to get the failed record ids .any ideas ??
Thanks
Kiran
I Have list of 10 accounts which i need to update out of that 10 records 5 records get updated and 5 records get failed to update due to validation rules ,Is there a way to get the failed record ids .any ideas ??
Thanks
Kiran
One edit to the code provided by Nayana.
Add Database.SaveResult to beginning of the followng line.