+ Start a Discussion
Vipin  PulinholyVipin Pulinholy 

Visual force Email template for diplaying related list info

I am trying to create a visual force Email template. I need to display the related list info in the email Template. I am following the steps from wiki . My requiremtn is to build a URL (A ‘click here’ link in the email content with URL parameteds from the related list id).


<apex:repeat var="cx" value="{!relatedTo.Cases}">      


<td> <a href="https://www.mywebsite.com/{!cx.id}">View</a> </td>


  From the existing wiki code I undersatnd that we can use the repeat tag to get the related list info.In this code I want to add a logic to get all id values and concat these values to form a URL  parameter. For example if I have a 3 values from this related list I want to build a URL by concating these id value. So if I have 3 id values 2222,3333,4444, I want to build a URL look like this.  https://www.mywebsite.com/?id=2222|3333|4444


 Can any one guide me on this?

Thank You
Message Edited by das on 03-01-2009 03:20 PM