function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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!