Some case variables are showing as a "?" when template is emailed

Email generated by workflow, condition (case status = new).

Email Template:
Company: $acase_account_name
Contact: $acase_contact_created_by_name
Case# $acase_case_number
Case Subject: $acase_name

Actual Email Content:
Company: ?
Contact: ?
Case# 1144
Case Subject: Testing Email Notifications

The variables $acase_case_number and $acase_name seem to work fine.

However, the two fields $acase_account_name and $acase_contact_created_by_name are sent as a “?”.

I would greatly appreciate any help or ideas to solve this.

Hi, welcome to the Community :tada:

Templates are famously inconsistent when handling variable names from related modules.

I don’t think you’ll be able to work around this without diving into PHP coding.

My add-on PowerReplacer solves this and a ton of other template-related things, but it comes at a cost, so it’s probably not what you’re looking for.

If you are a developer and you want to go hunt for the bug, I can tell you where to look.