I've an email template and I've few merge fields in them. This email template was working fine until we migrated this to a new environment.
So, first thing is that I'm using the same email field to send the email alert (which works fine since I'm receiving the email). But the value is empty when I use it in the template as a link.
<a href="{!Object__c.URL__c}/apex/page?
email={!Object__c.Email_Field__c}
&action=approve
&Id={!Object__c.Id}
¶m={!Object__c.Level__c}"
target="_blank">To Approve please click here </a>
The email field {!Object__c.Email_Field__c}
is not populating whenever the email is sent out but the other fields have values populated.
I've checked that the fields are in same object, fields have values, the field accessibility, tested the merge fields and it works like a charm.
Am I missing anything else? And yeah, the email alerts are working as expected in the older environment from where it is migrated.
Thanks in advance!
type
is still the same as before the migration on both your template and the object.email_field__c
appears? But it doesn't appear when you do a test send from within the email template editor?