Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

I don't know if I will find an answer to this, but I am having a mysterious problem with visualforce emails not populating with data when being sent via a workflow, but they do send fine when sent via the Send Test and Verify Merge Fields button.

Other Reports

Data Model

 

Notes

  • VF Email is being sent from Custom Object B and contains fields from all related objects. 
  • Emails sent from Custom Object A work with no problem. 
  • Values from Custom Object C show fine. 
  • The VF Email Template header is 
    • <messaging:emailTemplate subject="My Email Subject" recipientType="Contact" relatedToType="ObjectB__c" rendered="true">

Steps

Steps to try to work out what the problem is and fix it

StepNotesResult
Create formula fields for data

rather than

{!relatedTo.ObjectA__r.Campaign__r.Account__r.Notes__c}

I added the Notes field to Object B as a formula field so it was

{!relatedTo.Notes__c}

I did this for 3 fields

(error) No fields displayed
Send email immediatelyThe workflow was running after an hour(error) No fields displayed
Simplified the HTML Email (error) No fields displayed
Added the IDs for all the objects into the email body (tick) ALL IDs Displayed!!
Added the Names

If the Standard Fields of IDs display, do the standard fields of Names display?

Because the field that is displaying from ObjectC is the Name field.

(tick) All Name fields displayed!!
Added the new fields without any HTML embellishmentJust replaced the name fields that did display with the fields I wanted to display.(error) No Custom fields displayed!

 

 

 

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.