+ Start a Discussion
Simon WhightSimon Whight 

Easy one! Visualforce Email - return name not ID

As stated, I'm trying to pull a user and customer name and I'm getting the 15 character ID back instead. How do I get the actual name?

Code snippet:
 
<!--Table 10 **************************************************************************************-->
         
         <table border="0" >
           <col width="450"/>
           <col width="450"/>
           <tr>
            <th>Customer Signed By</th>
            <th>Position</th>
          </tr>
          <tr>
            <apex:repeat var="ctrtx" value="{!relatedTo.Contracts}" rows="1">          
            <td>{!ctrtx.CustomerSigned}</td>
            <td>{!ctrtx.CustomerSignedTitle}</td>
            </apex:repeat> 
          </tr>
        </table>

 
Best Answer chosen by Simon Whight
BalajiRanganathanBalajiRanganathan
try this
<td>{!ctrtx.CustomerSigned.firstName} {!ctrtx.CustomerSigned.lastName}</td>

or

<td>{!ctrtx.CustomerSigned.name}</td>


 

All Answers

BalajiRanganathanBalajiRanganathan
try this
<td>{!ctrtx.CustomerSigned.firstName} {!ctrtx.CustomerSigned.lastName}</td>

or

<td>{!ctrtx.CustomerSigned.name}</td>


 
This was selected as the best answer
Simon WhightSimon Whight
Done, thanks!