-
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
Wonder How Salesforce Commerce Cloud Provides Seamless User Experiences for eCommerce Businesses
Shifting primary demand from offline shopping to online shopping, eCommerce innovations have revolutionized the industry. As customers indulge in online shopping, they seek to demand…
Get to Know About the B2B Commerce Data Model | Salesforce Help Guide
What Exactly Is B2B Commerce Anyway? Business-to-business (B2B) trade is a world far eliminated from the online business encounters most people are utilized to. B2B…
Get A Salesforce 360° View Of Mobile Phone Activities
In today’s business world who does not have a mobile/cell phone? Whether it be a company-provided device or increasingly a BYOD (Bring Your Own Device)…
Popular Salesforce Videos
App to Track Your Trailblazer Journey | Are you a Trailblazer? | Mini Project | Salesforce Tutorials
In this video I will create an App to track our Trailblazer Journey. You will find out if you are a Trailblazer by watching this…
Salesforce Health Cloud – Creating Patient Relationships Not Records
Unfortunately, the gruesome truth facing the world today is the ever increasing pressure of diseases due to chronic disorders, pollution, growing age, and definitely increasing…
Customize Salesforce in a Flash with Lightning
This video shows you how to use Lightning App Builder to make page customizations without any code. This enables admins to tailor Lightning Experience for…