Activity Forums Salesforce® Discussions If i have system.debug() statement after adderror() method. Will system.debug() be statement executed in Trigger after adderror() method in Salesforce?

  • Manpreet

    Member
    May 22, 2017 at 6:12 am

    Hi saurabh,

    In trigger, lets say we have system.debug() statement after adderror() method. Will system.debug() be statement executed in Trigger after adderror() method

    adderror() method is not error statement rather its normal execution flow and all the statements written after adderror() will be executed normally.

    Thanks.

  • Sudhir

    Member
    June 9, 2017 at 2:54 pm

    True..but it will prevent any DML operation from happening.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos