Skip to main content
I'm using this button to send an email with information from a project.  It works in the test but i get this error in the active projects.  Here is the code, this was copied from a working template from a similar object with just the field references changed:

 

 

<messaging:emailTemplate subject="Project Assignment: {!

relatedTo.Name}" recipientType="User" relatedToType="pse__Proj__c">

 

<messaging:htmlEmailBody>        

 

<html>

 

    <body>

 

<P>

 

Please review the following project assignment and confirm acceptance.<P></P>

 

<P>

 

<B>Link to Project:</B><br></br>

 

<a href="{!LEFT($Api.Partner_Server_URL_280, FIND(".com/",$Api.Partner_Server_URL_280)+3)}/{!relatedTo.Id}">

 

    {!relatedTo.Name}

 

</a>

 

</P>

 

<B>Lead Engineer:</B> {!relatedTo.Lead_Engineer__r.FirstName} {!relatedTo.Lead_Engineer__r.LastName}<P></P>

 

<B>Customer:</B> {!relatedTo.pse__Account__r.Name} <br></br>

 

<B>Account Owner:</B> {!relatedTo.AE__r.FirstName} {!relatedTo.AE__r.LastName}<br></br>

 

<B>Solutions Architect:</B>  {!relatedTo.SA__r.FirstName} {!relatedTo.SA__r.LastName}<br></br>

 

<P></P>

 

<B>Project ID:</B> {!relatedTo.Name} <br></br>

 

<B>Customer Contact:</B><BR></BR>

 

{!relatedTo.Primary_Contact__r.FirstName} {!relatedTo.Primary_Contact__r.LastName}<BR></BR>

 

{!relatedTo.Primary_Contact__r.Email}<P></P>

 

<B>Project Notes:</B><BR></BR>

 

<apex:outputField value="{!relatedTo.Checklist_Notes__c}"/><P></P>

 

<B>Hours Budgeted to Project:</B> {!relatedTo.pse__Planned_Hours__c} <P></P>

 

<B>BOM:</B> {!relatedTo.PSA_BOM_URL__c} <P></P>

 

<B>SOW:</B> {!relatedTo.PSA_SOW_URL__c} <P></P>

 

<B>Project Location(s)</B> <br></br>

 

<apex:outputField value="{!relatedTo.Primary_Site__c}"/><P></P>

 

<apex:outputField value="{!relatedTo.Secondary_Site_Address__c}"/> <P></P>

 

</P>

 

<table border="1" cellpadding="5">

 

    <tr > 

 

        <th bgcolor="#.CCFF99">Order Status</th><th bgcolor="#.CCFF99" >Order Description</th><th bgcolor="#.CCFF99">ETA Date</th>

 

    </tr>

 

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

 

        <tr>

 

            <td>{!cx.Order_Status__c}</td>

 

            <td>{!cx.Order_Description__c}</td>

 

            <td style="white-space: nowrap">{!cx.ETA__c}</td>

 

        </tr>

 

    </apex:repeat> 

 

   

 

 </table>                   

 

   </body>

 

 </html>

 

</messaging:htmlEmailBody>

 

</messaging:emailTemplate>
1 respuesta
0/9000