I am trying to use the HUBL filters inside transaction emails and they are not working
Hey, @SKiran7
It’s challenging for the community to help troubleshoot without more information.
Here’s what I’d include:
- The specific HubL filters you are trying to use
- A snippet of your code showing your implementation
- What you expect to happen vs. what is actually happening
Thanks! — Jaycee
@Jaycee_Lewis I am trying to send a transaction email once the based on some status after ticket gets created using workflow
- I have filed on the ticket object Order Data(type: MultiLineText,id:order_data). I am saving the JSON data on the field
{"orderNumber":"123456","orderTotal":"$123.24"}
on the email template i am trying to access the above value using HUBL and using the filter `fromjson`
{% set orderObject=ticket.order_data|fromjson } and using the orderObject inside the template to display the values
<p>{{orderObject.orderNumber}}<p>
<p>{{orderObject.orderTotal}}</p>
but i only see the empty values.
@Jaycee_Lewis any update on this issue?
Hey, @SKiran7 Please see this documentation. “Please note: you can apply HubL filters to personalization tokens, such as contact and company tokens, on HubSpot CMS and blog pages, but not in emails.”