For SFMC there exists this known bug: https://help.salesforce.com/s/articleView?id=000321251&type=1

I understand how to handle it, putting things above the body-tag, but now I have a preheader that's called from a Data Extension with a variable:


And I need this because it can contain different languages. But in that different languages i use the recurring name of a store and that name is also in a variable.

When rendering, the preheader shows with the storename, but the storename disappears in the inbox, just like the bug describes - except that it's sort of an inception thingy, with a variable in a variable.

I've tried using treatascontent() but to no avail.

Anyone any ideas?

Thanks in advance!

  • Welcome to Salesforce Stack Exchange (SFSE)! +1 for the "Inception" reference/illustration. :)
    – Moonpie
    Jan 7 at 13:53

Since you are specifically asking for a workaround - use inline AMPscript in the preheader. If that gets messy, you can also use %%=ContentBlockByKey('SomeContentBlockCustomerKey')=%% in the preheader, put all your logic into that content block and the contained AMPScript should render at the right time.

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.