Skip to main content

Error: Unknown property 'core.email.template.EmailTemplateComponentController.Opportunity'

 

<messaging:emailTemplate subject="Closed Won Opportunity for {!relatedto.Account.Name} - Opportunity{!relatedto.Name}" recipientType="User" relatedToType="Opportunity"><messaging:htmlEmailBody ><html>    <body>The following opportunity has been updated to Closed Won!<br></br>        Account Name: {!Opportunity.Account}        Opp. Name: {!Opportunity.Name}        Opp. Owner: {!Opportunity.OwnerFullName}        Type: {!Opportunity.Type}        Close Date: {!Opportunity.CloseDate}        5 Year TCV: {!Opportunity.X5_Year_TCV_m__c}        Sales - 5 Year TCV: {!Opportunity.Assumed_Rev_5_Year_TCV__c}        Core Vendor: {!Account.Core_Vendor__c}        Core Product: {!Account.Core_Product__c}        OLB Vendor Name: {!Account.OLB_Vendor_Name__c}        OLB Product Name: {!Account.OLB_Product_Name__c}        Highest Stage Reached: {!Opportunity.Highest_Stage_Reached__c}        View in Salesforce: {!Opportunity.Link}</body></html></messaging:htmlEmailBody ></messaging:emailTemplate>

5 answers
  1. Aug 7, 2023, 7:31 PM

    I edited the suggested ^^^.

    But I am still getting this error

    <messaging:emailTemplate subject="Closed Won Opportunity for {!Relatedto.Account.Name} - Opportunity{!Relatedto.Name}" recipientType="User" relatedToType="Opportunity">

    <messaging:htmlEmailBody>

    <html>

    <body>

    The following opportunity has been updated to Closed Won!

    <br></br>

    Account Name: {!Opportunity.Account}

    Opp. Name: {!Opportunity.Name}

    Opp. Owner: {!Opportunity.OwnerFullName}

    Type: {!Opportunity.Type}

    Close Date: {!Opportunity.CloseDate}

    5 Year TCV: {!Opportunity.X5_Year_TCV_m__c}

    Sales - 5 Year TCV: {!Opportunity.Assumed_Rev_5_Year_TCV__c}

    Core Vendor: {!Relatedto.Account.Core_Vendor__c}

    Core Product: {!Account.Core_Product__c}

    OLB Vendor Name: {!Relatedto.Account.OLB_Vendor_Name__c}

    OLB Product Name: {!Relatedto.Account.OLB_Product_Name__c}

    Highest Stage Reached: {!Opportunity.Highest_Stage_Reached__c}

    View in Salesforce: {!Opportunity.Link}

    </body>

    </html>

    </messaging:htmlEmailBody >

    </messaging:emailTemplate>

0/9000