# Custom object property token not retrieving record's value

**URL:** <https://community.hubspot.com/t/custom-object-property-token-not-retrieving-records-value/65450>\
**Category:** CMS Development\
**Tags:** design-manager\
**Created:** [September 20, 2022, 12:36pm UTC](https://community.hubspot.com/t/custom-object-property-token-not-retrieving-records-value/65450 "2022-09-20T12:36:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoaoFerreira](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@JoaoFerreira](https://community.hubspot.com/u/JoaoFerreira)\
**Post date:** [September 20, 2022, 12:36pm UTC](https://community.hubspot.com/t/custom-object-property-token-not-retrieving-records-value/65450/1 "2022-09-20T12:36:48Z")

</div>

Hi all!

I have created a custom object (via V3 api) called “warehouse” and I was trying to use its properties tokens on a url to pass parameters.

But when the URL is sent via email, the tokens are not retrieving the warehouse’s properties values:

In CMS:

 ![Screenshot 2022-09-20 at 14.28.39.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/8/850665dd7419f38e89963c92fbb29f78a05dc70c.png)

When delivered:

![Screenshot 2022-09-20 at 14.31.20.png](https://d2qpr2jzcazej7.cloudfront.net/optimized/3X/9/b/9b4262ad321f99d52282ea1fc208c0f663256d94_2_690x27.png)

1. I tried changing the syntax but I believe the one above is correct, or is there something I am missing?

2. Do you believe there’s an implication there once it is a Custom Object? I tried with other properties of the same object and I noticed only two out of 40 worked…

Thank you all in advance!

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [September 20, 2022, 9:45pm UTC](https://community.hubspot.com/t/custom-object-property-token-not-retrieving-records-value/65450/2 "2022-09-20T21:45:59Z")

</div>

Hi, @JoaoFerreira 👋 Thanks for reaching out. Hey @Anton @piersg @Chris-M, do you have any suggestions for @JoaoFerreira?

Thank you! — Jaycee

---

<div class="post-metadata">

**Author:** ![piersg](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/piersg/32/99782_2.png) [@piersg](https://community.hubspot.com/u/piersg)\
**Post date:** [September 22, 2022, 11:40am UTC](https://community.hubspot.com/t/custom-object-property-token-not-retrieving-records-value/65450/3 "2022-09-22T11:40:58Z")

</div>

Hi @JoaoFerreira (thanks [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074)). I believe you would need to use the [crm\_object](https://developers.hubspot.com/docs/cms/hubl/functions#crm-object) HubL function. So something like

```lia-code-sample
{% set warehouse = crm_object("warehouse", false) %}
{{ warehouse.available_pallet_spaces }}

```

You can either use the object’s [fully qualified name](https://developers.hubspot.com/docs/cms/features/custom-objects#getting-a-custom-object-type-s-details), or the name that was entered at the time of creation.
