• dgervais
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

Hello,

 

I am looking into a way to create a Visualforce Email template to use for our Case auto-response.  What I'd like to be able to do is print a list of Suggested Solutions.

 

I know I can print the related list of Solutions with the code below.  However, I would like to print a list of Suggested Solutions, since when the case is opened, the Solutions will not be defined yet.

 

 

 

<messaging:emailTemplate subject="Your Case Has Been Opened" recipientType="Contact" relatedToType="Case"> <messaging:htmlEmailBody > (some unrelated html tabs / messaging) <table border="0" > <tr> <th>Solution Number</th> <th>Solution Name</th> </tr> <apex:repeat var="cx" value="{!relatedTo.CaseSolutions}"> <tr> <td><a href = "https://na1.salesforce.com/{!cx.SolutionId}">{!cx.Solution.SolutionNumber} </a></td> <td>{!cx.Solution.SolutionName}</td> </tr> </apex:repeat> </table> (some unrelated html tabs / messaging) </messaging:htmlEmailBody> </messaging:emailTemplate>