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
hawkmoon82hawkmoon82 

Opportunity Product info in Email Subject

Hi guys,

i'm trying to add in email subject, field of the opportunity product but i'm not having success

This the code i'm trying; everything's working well but cannot add product info into subject (PriceBookEntry.Product2.Lingua__c for istance) but I get 

Error: Unknown property 'VisualforceArrayList.PriceBookEntry'

Does anyone encountered this issue?

 

<messaging:emailTemplate recipientType="Contact"
relatedToType="Opportunity"

subject="Test di Lingua - {!relatedTo.Name - !relatedTo.OpportunityLineItems.PriceBookEntry.Product2.Lingua__c"
>