+ 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>