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
- http://salesforce.stackexchange.com/questions/22568/approval-process-step-field-update-doesnt-appear-in-same-steps-visualforce-ema (It's not an approval).
- https://developer.salesforce.com/forums/ForumsMain?id=906F00000008lpRIAQ (no answer, and their data model is simpler, so I think it is not to do with the data model)
- https://success.salesforce.com/issues_view?id=a1p30000000SdBfAAK (It's not the same because this is saying the workaround is to use relatedTo, which I am).
Data Model
Notes
- VF Email is being sent from Custom Object B and contains fields from all related objects.
- Emails from Custom Object A work with no problem.
Status
Does work
- Values from Custom Object C work fine.
Doesn't work
Here's what I've tried that doesn't work
- Sending via a workflow on one hour timer
- Sending via workflow immediately
- relating all the required fields onto Custom Object B as formulas
- Using one workflow to set a status saying send the email and another workflow to send the email.
Add Comment