We have two Custom Object having MD relationship

  1. Query (Parent)
  2. Questions (Child)

Now, we have created a record for Query (Parent) and added multiple questions in Questions Object(child).

We have Quick Action button. After clicking on this, we need to send email to User having information of Query object and Question object - i.e All the questions which we created for this query.

I am using HTML Template but i am getting value for Query (Parent object) but getting blank for child object

Below is the HTML Template Code:

Dear {!Receiving_User.Name},  

Details given below : 
Query name: {!Query__c.Name}

Questions :  {!Query__c.Question__r.Question__c}

  • Is Question__c a field in your question object. from the merge fields above, i can see Query > Question Object > Question object (i think you need to specify the field name from the question object here like Id or Name or Question_Name__c etc. – Raj Jul 1 '19 at 13:49
  • Yes Question__c is the field in "Object Question" – Pervez Jul 1 '19 at 14:01
  • Ok, so try this. Usually related objects are referred with its plural names. {!Query__c.Questions__r.Question__c} – Raj Jul 1 '19 at 14:10
  • No. Its not working. – Pervez Jul 1 '19 at 14:19
  • Pervez, i think these links below will answer your issue. I think it is not available in Salesforce yet but you can vote help.salesforce.com/… success.salesforce.com/ideaview?id=08730000000Brk7AAC - Upvote the Idea here – Raj Jul 1 '19 at 15:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.