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
Priya_MarupudiPriya_Marupudi 

Hyperlink of a report in sendemail plain text email template

Hi all,

 

I want to make a hyperlink in the email that I am sending. Right now I am using a Text email template to send an email from apex code.

Any suggestions?

colemabcolemab

I did a post about this not to long ago.  Read it here.

 

*EDIT*: I thought you were asking about generic links - not to reports directly . . .

sfdcfoxsfdcfox
You should note that "plain text" cannot support "links." Links are metadata, created through the use of HTML's "a" element:

<a href="https://server.salesforce.com/some_Id">Link</a>

However, if you output something like that "looks" like a link, most email clients will render it as a clickable link (but there is no guarantee, since "plain text" cannot be, by definition, a link, or underlined, or bold, or any other thing than ... plain text).