# Get \*All\* Values of a Custom Object from crm\_objects Function

**URL:** <https://community.hubspot.com/t/get-all-values-of-a-custom-object-from-crm-objects-function/122933>\
**Category:** CMS Development\
**Tags:** professional\
**Created:** [December 22, 2024, 6:03pm UTC](https://community.hubspot.com/t/get-all-values-of-a-custom-object-from-crm-objects-function/122933 "2024-12-22T18:03:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thekevinpotts](https://avatars.discourse-cdn.com/v4/letter/t/9de0a6/32.png) [@thekevinpotts](https://community.hubspot.com/u/thekevinpotts)\
**Post date:** [December 22, 2024, 6:03pm UTC](https://community.hubspot.com/t/get-all-values-of-a-custom-object-from-crm-objects-function/122933/1 "2024-12-22T18:03:33Z")

</div>

I have created a custom object for webinars. When I try to query for the webinars’ data, it retrieves _only_ the title and the ID, no other values from any other property in the custom object. The most basic code:

```lia-code-sample
{% set webinars = crm_objects("webinars") %}
{{ webinars|pprint }}

```

But this returns only this data:

```lia-code-sample
(CrmObjectList: { 
 "hasMore" : false, 
 "offset" : 2, 
 "results" : 
 [ 
 { 
 "id" : 21530395982, 
 "webinar_title" : "Test Webinar 1" 
 }, 
 { 
 "id" : 21530396007, 
 "webinar_title" : "Test Webinar 2" 
 } 
 ], 
 "total" : 2 
})

```

No other data gets pulled -- no timestamps, no custom properties, etc. If I run this same query with a _standard_ object (contact, marketing\_event, etc), this query works as expected. Why does it not return all data for a custom object?

---

<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:** [December 23, 2024, 5:00pm UTC](https://community.hubspot.com/t/get-all-values-of-a-custom-object-from-crm-objects-function/122933/2 "2024-12-23T17:00:13Z")

</div>

Hey, @thekevinpotts 👋 Thanks for your question. What properties are currently set as Primary and Secondary for your Custom Object? Have you tried updating the secondary properties to include the properties you need in this case?

If you make a request to a Custom Object record, without including additional properties as a param, do you “only” get back the title and id? Or are other properties returned as well?

Thanks for the additional information! — Jaycee

---

<div class="post-metadata">

**Author:** ![thekevinpotts](https://avatars.discourse-cdn.com/v4/letter/t/9de0a6/32.png) [@thekevinpotts](https://community.hubspot.com/u/thekevinpotts)\
**Post date:** [December 24, 2024, 1:08pm UTC](https://community.hubspot.com/t/get-all-values-of-a-custom-object-from-crm-objects-function/122933/3 "2024-12-24T13:08:56Z")

</div>

My primary property is **webinar\_title**. I have a second property of **short\_description**. As you can see, that does not appear in the results either.

No combination of params has yielded ANY difference in the results. I have experimented with different options, different syntax, etc, and I absolutely cannot get crm\_objects to pull anything beyond the above code sample for a custom object. I am entirely open to any suggestions because I am confounded.

I should also mention that crm\_object yields similar results. A basic call like this:

`{% set webinar = crm_object("webinars", 21530396007) %}`

… also yields no additional information in the array.

---

<div class="post-metadata">

**Author:** ![thekevinpotts](https://avatars.discourse-cdn.com/v4/letter/t/9de0a6/32.png) [@thekevinpotts](https://community.hubspot.com/u/thekevinpotts)\
**Post date:** [December 26, 2024, 4:17pm UTC](https://community.hubspot.com/t/get-all-values-of-a-custom-object-from-crm-objects-function/122933/4 "2024-12-26T16:17:11Z")

</div>

OK, I discovered that the function MUST include more information, which I did not sufficiently explore in my initial tests. Custom objects seem to be unique in this regard. Whereas the crm\_objects function calls a full array for _standard_ HubSpot objects, crm\_objects must include a filter and the names of the properties being called.

In other words, this works as expected:

```lia-code-sample
{% set webinars = crm_objects("webinars", "limit=5","webinar_title,slug,date_and_time,short_description") %}
{{ webinars|pprint }}

```

This will then give me a full array with the title, url slug, date and time, and my summary, all of which are custom properties.

---

<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:** [January 7, 2025, 9:39pm UTC](https://community.hubspot.com/t/get-all-values-of-a-custom-object-from-crm-objects-function/122933/5 "2025-01-07T21:39:57Z")

</div>

Hey, @thekevinpotts 👋 Thank you very much for taking the time to come back and update your post! — Jaycee
