Personalized images based on Custom Object

Hello,

I’m trying to have a different image displayed for each member of a contact list to which I will send an emailing.

The image is a personalized boarding pass. I uploaded the images in a dedicated folder on Hubspot and pasted their url in a file property in a custom object called “Inscription”.

I created the emailing and within I inserted an HTML block with the following code on my first try :

<p>

<img src=“{{ inscription.boarding_pass }}” alt=“boarding pass”>

</p>

It didn’t work. I tried to find out what the internal name of the custom object was and found something, so I used it on my second try with the following code :

<p>

<img src=“{{ p25356526_inscription.boarding_pass }}” alt=“boarding pass”>

</p>

No luck either. The image won’t display in preview when I try with me as contact (and yes I do have an image hosted for me).

I based my coding on this exchange :
https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Personalized-custom-images-in-an-email/td-p/576303

Hey,

So, how are the custom objects connected to the Contact record? I would recommend instead using a custom property for each contact, then it would be {{ contact.boarding_pass }}

Hi Ashley, Contact custom property is the solution I adopted in last resort but that’s definitely not ideal. That property is bound to change with each new inscription (Inscriptions are a custom object linked to Contacts) to our events.