0

I have a data extension with a 'subjectline' column with the content '%%FirstName%%, check out this great subject line'. I then have a code snippet content block that has a set of if statements which determine what row/subject line the recipient should get. I then place %%=ContentBlockbyId("147137")=%% in the subject line section referencing the code snippet content block.

The content picks up fine, however the %%FirstName%% tag just appears as plain text. Is it possible to get this to pull in the recipients first name from the sending DE? Or will it always be read as plain text?

0

Try using TreatAsContent inside the content block.

%%[
SET @firstname = FirstName
]%%

%%=TreatAsContent(@firstname)=%%
  • 1
    Worked perfectly. Thanks! – cmccarra Feb 25 at 14:37

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.