CMS Development

SBosquet
Member

Personalized images based on Custom Object

SOLVE

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/t...

0 Upvotes
1 Accepted solution
ashleyidesign
Solution
Top Contributor | Partner
Top Contributor | Partner

Personalized images based on Custom Object

SOLVE

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 }}

View solution in original post

0 Upvotes
2 Replies 2
ashleyidesign
Solution
Top Contributor | Partner
Top Contributor | Partner

Personalized images based on Custom Object

SOLVE

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 }}

0 Upvotes
SBosquet
Member

Personalized images based on Custom Object

SOLVE

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.

0 Upvotes