Using embed code in personalization tokens to share content in an email template
resolver
I am trying to send video feedback to customers within an email template. I have embed code stored in personalization tokens that is updated weekly on an external database, then the property for that contact is updated.
The embed code will display correctly when it is pasted directly into the template, like this:
I think I am missing something in the formatting, and I am not very knowledgeable in code, so was directed to this forum by Hubspot support. Any help would be greatly appreciated.
Worst case, I'd say you could use a split|first|last method as in this thread to pull the url out of the personalization token. It can be a little tough to work out the split exactly, but I imagine you can achieve it that way.
I haven't included the rest of your iframe perimeters there because writing code on a phone is hard 😅. For that same reason, double check the code I gave for typos.
Using embed code in personalization tokens to share content in an email template
resolver
Unfortunately, the property has to be stored with the <iframe> code, as this is how it is taken from the database it is connected to. Separating the video link would require manually editing every property, as it's the embed link that is stored on the database. For context, the videos are embedded on our own platform - we want it to be emailed to customers as well.
I'm not sure why it cannot be accepted as code instead of a text string. It might be something to do with the property itself. I am not finding any examples online of properties containing code, so you might be onto something.
Worst case, I'd say you could use a split|first|last method as in this thread to pull the url out of the personalization token. It can be a little tough to work out the split exactly, but I imagine you can achieve it that way.