-
How to check if any error has been added to a Salesforce record?
Hii All,
I have created a method which is being called through a trigger. I am adding error to a record if it is a duplicate one using 'addError()' method.
Now , I want to cover this method in my test class. How Can I check that on which records , error has been added?
Log In to reply.
Popular Salesforce Blogs
Delete Multiple Records Using Pagination in Lightning Component
Hello guys, today in this post we are going to learn about how to delete multiple records using pagination using Salesforce Lightning Component. But before…
Salesforce Lead Management: A Detailed Guide (2022)
The Salesforce lead status is an integral part of your business that can guide you to success with its strategies for effectively managing leads. Lead…
Salesforce Editions - Keys for a Successful Selection
If you have already decided to adopt Salesforce CRM, you may find yourself in the dilemma of choosing which of its editions is more suitable.…
Popular Salesforce Videos
GDPR & Telephony Consenting & Forgetting In Salesforce
The big noise in the market right now is GDPR, the General Data Protection Regulation. This is the new European rule for data protection which…
Salesforce Live Executive Experience: UK and Ireland 2021
At Salesforce Live Executive Experience we welcomed guests in-person and virtually to enjoy enlightening content, much missed networking and a performance from Jools Holland. The…
Salesforce Spring ’21 Release Highlights
To improve the platform, Salesforce releases updates three times a year (Spring, Summer, Winter). This is the time for Salesforce Spring ’21 Release. With Salesforce…