+ Start a Discussion
loislaneloislane 

Visual Force Email Template - include Thread ID and Case Owner Email Signature

I need to use a Visual Force email Template when cases are closed so I can customize the Reply To Field.

 

How do I include the Case thread ID?

How do I include the Case Owner's Email Signature?

 

<messaging:emailTemplate recipientType="Contact" 
relatedToType="Case"
replyTo="{!relatedTo.Owner.email}"
subject="Notice of Closed Case & Client Survey: {!relatedto.CaseNumber}" >
<messaging:htmlEmailBody >
<html>
<body>
<messaging:htmlEmailBody >
        <html>
            <body>

            <p>Dear {!recipient.name},</p>
            <p>This is to inform you that Case # {!relatedto.CaseNumber} which was reported by you on {!relatedto.CreatedDate} has been marked as 'Closed'.   If you feel that this case has been closed in error, please do not hesitate to contact us.</p>

       <p>Sincere regards,</p>
            <br></br>
            <p>{!relatedTo.owner.name}</p>
<p>CASE OWNER SIGNATURE HERE</p>
            <br></br>
            <br></br>     
<p>CASE THREAD ID HERE</p>
          
            </body>
        </html>
    </messaging:htmlEmailBody>
</messaging:emailTemplate>

 

DahveedDahveed

Did you find any resolution on this or can you not include {relatedTo.Thread_Id} to a visualforce email template? I try it and get

Error: Invalid field Thread_Id__c for SObject Case

 

 Thanks,

 

Dahveed

DahveedDahveed

Sorry I meant

Error: Invalid field Thread_Id for Sobject Case.  I tried putting the __c just in case but didn't work.

Alan AshbaughAlan Ashbaugh
I have this same issue. I'm trying to include the Thread_Id like this: {!relatedTo.Thread_Id} and I get the same error: Invalid field Thread_Id for Sobject Case. Anyone know?