DISPLAY ERRO MESSAGE WITH CLICK HERE TO REDIRCT RECORD DETAIL PAGE.
errorMessage = '<font color="red"><b>Mitigating factors need to be completed while deviation is approved.<u><a href="'+URL.getSalesforceBaseUrl().toExternalForm()+'/'+Trigger.new[0].Id+'">Click here</a></u> to go to the record.</font></b>';
No comments:
Post a Comment