You need to sign in to do that
Don't have an account?
RRRize
How can I create a link to a record in a trigger?
I've created a trigger that sends out an email. The merge fields to the custom object are hard coded into the trigger. I would like to include in the email a link to the record where it's pulling the data for the merge fields. Can someone provide some insight as to how I can accomplish this?
Please provide your code , still I will suggest you to use a formula field and use it as hyperlink. Add this in your email template.
Please give me an example of how you would write this formula field. I'm lost as to how I would go about writing it. Just to reiterate, I just want to provide a web link back to the record in the email. Here is my code, as you requested:
from Marketing_Request_Form__c
where Id in :Trigger.new order by CreatedDate];