# Personalized images based on Custom Object

**URL:** <https://community.hubspot.com/t/personalized-images-based-on-custom-object/61101>\
**Category:** CMS Development\
**Tags:** object\
**Created:** [July 16, 2022, 5:21pm UTC](https://community.hubspot.com/t/personalized-images-based-on-custom-object/61101 "2022-07-16T17:21:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SBosquet](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sbosquet/32/69815_2.png) [@SBosquet](https://community.hubspot.com/u/SBosquet)\
**Post date:** [July 16, 2022, 5:21pm UTC](https://community.hubspot.com/t/personalized-images-based-on-custom-object/61101/1 "2022-07-16T17:21:43Z")

</div>

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](https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Personalized-custom-images-in-an-email/td-p/576303)

---

<div class="post-metadata">

**Author:** ![ashleyidesign](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ashleyidesign/32/30338_2.png) [@ashleyidesign](https://community.hubspot.com/u/ashleyidesign)\
**Post date:** [July 18, 2022, 7:30pm UTC](https://community.hubspot.com/t/personalized-images-based-on-custom-object/61101/2 "2022-07-18T19:30:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![SBosquet](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sbosquet/32/69815_2.png) [@SBosquet](https://community.hubspot.com/u/SBosquet)\
**Post date:** [September 6, 2022, 2:10pm UTC](https://community.hubspot.com/t/personalized-images-based-on-custom-object/61101/3 "2022-09-06T14:10:46Z")

</div>

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.
