0

I have a birthday field (birthday_)c) which I'm trying to pull into a visual force email template, but when I try to save it i'm getting this error message:

Invalid field birthday_c for SObject Lead

But there is definitely a birthday field on a lead record with the salesforce name of "birthday_c".

Does anyone know why this isn't pulling into the visual force email?

2

If the field is a standard field then it should be Birthdate if it is a custom field then you forgot the double underscore birthday__c

Also, you can use the field picker in the email template builder to ensure you get the correct merge fields instead of manually typing them out.

| improve this answer | |
  • the salesforce API name is "Birthday_c" which I inputted. But I also just tried "birthday" as you suggested but I just got the same error message – chiccaboom Nov 2 '15 at 16:42
  • Please reread my answer. DOUBLE underscore __c – Eric Nov 2 '15 at 16:43
  • @chiccaboom - No worries. Please mark as accepted answer if it solved your problem otherwise the question will keep surfacing as unanswered also so people looking for similar problem can find an answer – Eric Nov 2 '15 at 16:46
  • ya it won't let me do that atm, need to wait a few minutes, but will do so:) – chiccaboom Nov 2 '15 at 16:47

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.