I have a send email action in a workflow that's de...
# general
l
I have a send email action in a workflow that's deployed to a custom record. How do I reference a field in the email body in the send email action? I tried the fieldid, customrecord.fieldid, customrecordid.fieldid, but none of these worked for me
m
its usually with the $ sign
${customrecord_fieldid}
l
This is for the email body within the send email action (not through the Email Template record). I tried adding a $ and it only showed the % itself.
w
check if id is correct or not, or field value Maybe. what is the field type?
l
It's correct. It's a text area field
m
oh sorry it should just be {fieldid}. the curly braces should feed in the dynamic field value
it sounds like your field value is either blank or maybe it contains something that is causing a bug in the send email action. Also what is your trigger. The field value may be blank at the time the send email action is triggered
l
It's so weird. It didn't work. Maybe there's a special format for custom record fields. I've just created an email template and used it in the workflow which worked fine.
m
Luis Send the source code snippet and a screenshot of the exact field Script ID. Also confirm the trigger state. If this is firing on Before Load or Entry, the value is null. Raw text areas fail on inline injection..