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
ezhil_kezhil_k 

How to create the "Link ?

when a user enter values in  fields in the form and save ,it is sending  a link in email to the approver. when the approver clicks that link,it should redirect him to the detail page of the corresponding record to approve.How to create the "Link " ?

vikas88vikas88

Hi,

 

You can use htmlbody method e.g

 

Try this:

 

Messaging.SingleEmailMessage mail1 = new Messaging.SingleEmailMessage();
string mailsend='<a href="#"> your link</a>'
mail1.setHtmlBody(mailsend);

 

 

ezhil_kezhil_k

Actually i need to know " how to create the Link"...