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? Reply To: 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.