You need to sign in to do that
Don't have an account?
Malik Butler
add just the latest comment of case comment in pdf
I am trying to get the most recent comment from the case comments related field into my pdf. I have it currently coded to put the comment body in but if there's more than one comment in the related field it puts all comments in the pdf. Where should I go from here?
<table style="page-break-inside:avoid" border="3"> <tr style="font-weight: bold;font-color:Black;"> <td colspan="1" bgcolor="#9FC6F9">Work Performed</td> </tr> <tr width = "100%"> <td style="height:45px;" width = "5%"><apex:pageBlock > <apex:pageBlockTable value="{!case.casecomments}" var="c"> <apex:column value="{!c.commentbody}"/> </apex:pageBlockTable> </apex:pageBlock> </td>