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
Rohit Prasanna ChandramouliRohit Prasanna Chandramouli 

Visualforce email template - error

Hello,

I am working on a visualforce email template related to the line-items object. I am trying to bring in the Market share data from a different model where the data is available for all my competitors. However, I would like to get only the Market Share data for my company. How do I do that? I tried doing the below, but it wouldn't work.

Also, the rest of the data in that table is specific to product No. whereas the Market data is based on the product Family. A product family can have more than one product number.

<apex:outputPanel rendered="{!cx.IMS_Market_Data__r.Manufacturer__r.Name='My company'}"><tr><td align="center">{!cx.IMS_Market_Data__r.Ranking__c}</td></tr></apex:outputPanel>

 
AnkaiahAnkaiah (Salesforce Developers) 
Hi Rohit,

Refer the below articles will help you to proceed further on your requirement.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_email_templates_intro.htm
https://www.emizentech.com/blog/visualforce-email-templates-in-salesforce.html

Thanks!!