Activity Forums Salesforce® Discussions can we check if an Sobject has errors without performing DML in Salesforce ?

  • can we check if an Sobject has errors without performing DML in Salesforce ?

    Posted by Anuj on September 7, 2020 at 1:37 pm

    can we check if an Sobject has errors without performing DML in Salesforce ?

    Kirandeep replied 4 years, 2 months ago 2 Members · 1 Reply
  • 1 Reply
  • Kirandeep

    Member
    September 7, 2020 at 1:38 pm

    Hi Anuj,
    In winter 21 Release Salesforce Introduced two new methods hasErrors() and getErrors() to track errors without performing a DML operation to check the result for errors.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos