function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mukesh guptamukesh gupta 

Approval process display addError msg

When manager reject opportunity then error message display from trigger, but i want to bypass addError message in apex trigger. for spicific condition user face addError message, but when opportuntiy reject by manager then i want to by pass this error message.

Please suggest

Regards
Mukesh 
KtHasNoLimitKtHasNoLimit
Hello Mukesh,

You can remove the add error message code from a trigger and on certain conditions use it using if condition. You need to modify the trigger code

Thanks,
Kirti Rathod