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
john8407john8407 

Open account from trigger error message

I have a trigger that populates an error message if criteria is met on a VF page.  Is it possible to include a link to the account from that error message?  This is my error.

 

opp.addError(''+contactname1.Name+' must have a contact type'); 

osamanosaman

Is it a custom visualforce page? If it is, you can do some data manipulation and put the link in <apex:outputLink>