CMS Development

kaselvan
Membre

How can i access the JSON value through email template?

I do have JSon values in one my contact property and wanted to split and show this in the email template. "Classcount:1,StudentCount:3,ParentCount:0,ClassName:MathClass".

 

Please let me know how can i do that.

0 Votes
4 Réponses
alyssamwilie
Expert reconnu | Partenaire solutions Elite
Expert reconnu | Partenaire solutions Elite

How can i access the JSON value through email template?

@kaselvan Nothing short of possibly using the API to create an integrartion that grabs, manipulates, and inputs the data instead of using personalization tokens. There simply isn't a way to manipulate personalization tokens for email directly in Hubspot.

If this answer solved your question, please mark it as the solution.

Alyssa Wilie Profile Image

Alyssa Wilie

Web Developerat Lynton

Learn HubL | Get Marketing Insights

HubSpot Elite Solutions Partner
Lynton's HubSpot theme Rubric now available. Click to download.
alyssamwilie
Expert reconnu | Partenaire solutions Elite
Expert reconnu | Partenaire solutions Elite

How can i access the JSON value through email template?

@kaselvan You would need to use a HubL filter to be able to split a property, but unfortanutely filters aren't available on contact properties for email templates. From the Hubspot documentation - "Please note that using filters on any personalization variables (such as but not limited to contacts, company, and deal variables) is not currently supported for email in HubSpot due to how emails are rendered."

If this answer solved your question, please mark it as the solution.

Alyssa Wilie Profile Image

Alyssa Wilie

Web Developerat Lynton

Learn HubL | Get Marketing Insights

HubSpot Elite Solutions Partner
Lynton's HubSpot theme Rubric now available. Click to download.
kaselvan
Membre

How can i access the JSON value through email template?

Thank you very much for your reply Alyssa.

Yes i saw that HubSpot document. Is there any work around to split the JSON and bring them into Email template. My email templates have more dynamic values and i do not want to create multiple Contact properties.

0 Votes
dennisedson
Équipe de développement de HubSpot
Équipe de développement de HubSpot

How can i access the JSON value through email template?

Hello @kaselvan 

Welcome to the Community!

@alyssamwilie is a freaking rock star when it comes to email templates.  Perhaps she can assist here. 

I would add that the more code that you can show us the better chances we can solve!

 

 

0 Votes