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
shiva pendemshiva pendem 

How to Display Approval Process Custom Error Messages

Hi friends
I have a one approval process on account object. I want to display custom error message instead of standard Error message after clicking on the approval button . In my Senario Account name is Unique So whenever we Click On Approve button the trigger will fire and  the custom Object record will store into account object at that time i want show the Custom message instead of standard message when duplicate Account name found in Account object.. Please if u have any idea about this issue please share with me 

thanks
shiva pendem
SonamSonam (Salesforce Developers) 
I believe you cannot really override the standard approval button, hwever, if you wish to check just for duplicates - you can do the same at the time of entering the Account..right? please correct me if I haven't understood the exact requirement.