Email Marketing Tool

DLi4
Participante

Passing code in a personalization token

resolver

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 Avaliação positiva
1 Solução aceita
karstenkoehler
Solução
Membro do Hall da Fama | Parceiro
Membro do Hall da Fama | Parceiro

Passing code in a personalization token

resolver

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.

Exibir solução no post original

0 Avaliação positiva
4 Respostas 4
Zayne
Colaborador(a)

Passing code in a personalization token

resolver

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 Avaliação positiva
Zayne
Colaborador(a)

Passing code in a personalization token

resolver

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 Avaliação positiva
karstenkoehler
Solução
Membro do Hall da Fama | Parceiro
Membro do Hall da Fama | Parceiro

Passing code in a personalization token

resolver

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 Avaliação positiva
DLi4
Participante

Passing code in a personalization token

resolver
You nailed it! This works!

Thank you so much.
0 Avaliação positiva