• hawkmoon82
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies

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"
>

 

Hi Guys,

'm trying to associate leads coming from my site form to existing campaign.
If I use the parameter Campaign_ID with the value hardcoded it works well.
What I need is to associate lead to campaign reading an external ID passed by the form submission ('cause my company is recording the contact in another system too).
I created a field into the campaign panel named "activityid" (value 00N20000002vc0v) as an external id but if i set in the form the code: $form_vars['00N20000002vc0v'] = 'EXTERNAL ID'
it fails and do not associate.


maybe something like that should be useful?

on lead creation
if (Lead.activityid = Campaign.activityid)
{
associate lead2campaign Lead.Campaign = Campaign.activityid.name
}

 

thx

 

<apex:datatable align="left" var="nt" width="100%" value="{!relatedTo.Network_Trial_Items__r}">
            <apex:column width="40%" value="{!nt.Product__c}" headerValue="Product"/>
            <apex:column width="30%" value="{!nt.USIM__c}" headerValue="USIM"/>
</apex:datatable>

The above gives me a great table of related items, but I need to filter and only show a specific category. 

 

 

How do we do this in a Visualforce email?