You need to sign in to do that
Don't have an account?
Create an email template with visualforce
Hello
I´m new with visualforce and I need to create an email template to show data of the opportunity, show the related quote and show the list of a custom object (call CE) that is related to the quote. The next is an example of what a need:
- Quote has a relation master detail with opportunity
- CE (My_custom_object) has a relation master detail with quote
Dear {!recipient.Name}
{!Opportunity.Name}
{!Opportunity.closeDate}
{!Quote.name}
{!Quote.date}
(here I need to show a table with the list of items of my custom object)
Code- Name - Date
I hope you understand me. I appreciate your help.
seems like the child name is not referenced properly.
You can check the Relationship name in salesforce schema. Go to Parenet object, drill down to child relationships and find the relationship name.
you should have a name that ends with __r
Hop this helps.
All Answers
This should give you an idea -
Thank you for your reply.
I have this:
It shows me this Error: Invalid field Course_Requirement__c for SObject Quote and i really don´t know what should i do to make it work. I want to show the information of the course requirements related to the quote.
seems like the child name is not referenced properly.
You can check the Relationship name in salesforce schema. Go to Parenet object, drill down to child relationships and find the relationship name.
you should have a name that ends with __r
Hop this helps.
Thank you rov, you were right, i was missing the __r.
can you please mark this as resolved so that others can reuse the solution where applicable.