Email Marketing Tool

DLi4
Participant

Passing code in a personalization token

SOLVE

I have a multi-text type field that is storing a different piece of code for each of my contacts. 

That code is essentially HTML that I would like to drop into my emails that would load a different personalized message. 

 

Problem I am running into is that the code doesn't render. I've tried entering in the personalization token into the source code and also tried loading it into an HTML module... neither is leading to the code rendering. Instead, I get a block of code that shows up in my email. 


Is what I'm trying to do feasible? 

0 Upvotes
1 Accepted solution
karstenkoehler
Solution
Hall of Famer | Partner
Hall of Famer | Partner

Passing code in a personalization token

SOLVE

Hi @DLi4,

 

Instead of a multi-line text property, can you try a property with the type 'Rich text'? I've created emails using HTML personalization tokens and this property type.

 

Best regards

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

View solution in original post

0 Upvotes
4 Replies 4
Zayne
Contributor

Passing code in a personalization token

SOLVE

I'm trying to get this right too, but no combination seems to be working. I've created a Rich text field and added content to it:

Screenshot 2024-06-12 at 18.28.00.png

 

I then created a mail and tried to insert this in both a Rich-text block as well as an HTML block: Screenshot 2024-06-12 at 18.30.16.png

 

However, it always just renders out the html in the preview:

 

Screenshot 2024-06-12 at 18.31.47.png

 

So either I'm doing it wrong or you cannot add html into an email.

 

0 Upvotes
Zayne
Contributor

Passing code in a personalization token

SOLVE

It turns out that there is a bug - rich text fields work correctly for all normal HubSpot objects, such as contacts. However, they don't work correctly for custom objects. They output the raw html and there's no way to get them to render the real output!

 

HubSpot please fix!

0 Upvotes
karstenkoehler
Solution
Hall of Famer | Partner
Hall of Famer | Partner

Passing code in a personalization token

SOLVE

Hi @DLi4,

 

Instead of a multi-line text property, can you try a property with the type 'Rich text'? I've created emails using HTML personalization tokens and this property type.

 

Best regards

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

0 Upvotes
DLi4
Participant

Passing code in a personalization token

SOLVE
You nailed it! This works!

Thank you so much.
0 Upvotes