# Dynamicaly pull Listings objects into a module

**URL:** <https://community.hubspot.com/t/dynamicaly-pull-listings-objects-into-a-module/125412>\
**Category:** CMS Development\
**Tags:** crm\
**Created:** [February 4, 2025, 8:00pm UTC](https://community.hubspot.com/t/dynamicaly-pull-listings-objects-into-a-module/125412 "2025-02-04T20:00:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thoumii](https://avatars.discourse-cdn.com/v4/letter/t/58956e/32.png) [@Thoumii](https://community.hubspot.com/u/Thoumii)\
**Post date:** [February 4, 2025, 8:00pm UTC](https://community.hubspot.com/t/dynamicaly-pull-listings-objects-into-a-module/125412/1 "2025-02-04T20:00:11Z")

</div>

Hi,

for the past few hours, i’ve been trying to pull information from my listings CRM object into a custom module. It has so far only worked with the “products” CRM object, but not the listings one. Why could this be? This is the code i’m using just to test to see if there are any instances of the listings object.

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

```

I have tried to replace the “LISTING” for “listing”, “listings” and many more, but this is the only way I don’t get there errors:

```lia-code-sample
1. Error:object type `listing` does not exist
2. Error:'listing' is not a valid object type
3. Error:An argument is missing

```

Anyway, the above code snippet comes up with “null” on the hubspot page. As soon as I replace “LISTINGS” with “product”, it comes up with the instances of the product object, as I would expect with the listing object. And I have one testing instance of the listing object set up in the CRM. Any help will be appreciated.

---

<div class="post-metadata">

**Author:** ![HFisher7](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/hfisher7/32/101931_2.png) [@HFisher7](https://community.hubspot.com/u/HFisher7)\
**Post date:** [February 5, 2025, 10:01am UTC](https://community.hubspot.com/t/dynamicaly-pull-listings-objects-into-a-module/125412/2 "2025-02-05T10:01:17Z")

</div>

@Thoumii - Would it work to use the object ID for listings instead (which you can find in the URL)..?!

---

<div class="post-metadata">

**Author:** ![Thoumii](https://avatars.discourse-cdn.com/v4/letter/t/58956e/32.png) [@Thoumii](https://community.hubspot.com/u/Thoumii)\
**Post date:** [February 5, 2025, 10:07am UTC](https://community.hubspot.com/t/dynamicaly-pull-listings-objects-into-a-module/125412/3 "2025-02-05T10:07:08Z")

</div>

It wouldn’t. Not only does it not work, but I need to pull all the objects, not just a specific one. I talked to support and found out that it just won’t work, due to this: Please note: for security purposes, of the HubSpot standard object types only the product, and marketing\_event objects can be retrieved on a publicly accessible page. Any other standard object type must be hosted on a page which is either password protected or requires a CMS Membership login. Custom objects do not have this same restriction.

Thanks for the reply!

---

<div class="post-metadata">

**Author:** ![SteveHTM](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stevehtm/32/22074_2.png) [@SteveHTM](https://community.hubspot.com/u/SteveHTM)\
**Post date:** [February 6, 2025, 8:23pm UTC](https://community.hubspot.com/t/dynamicaly-pull-listings-objects-into-a-module/125412/4 "2025-02-06T20:23:26Z")

</div>

@Thoumii - I know everything you explain sounds perfectly logical, but I often revert to using the base object ID in API and other calls rather than the name(s). In this case that value seems to be ‘0-420’ Perhaps the code will work better with that as an anchor.

Steve

---

<div class="post-metadata">

**Author:** ![Thoumii](https://avatars.discourse-cdn.com/v4/letter/t/58956e/32.png) [@Thoumii](https://community.hubspot.com/u/Thoumii)\
**Post date:** [February 6, 2025, 8:34pm UTC](https://community.hubspot.com/t/dynamicaly-pull-listings-objects-into-a-module/125412/5 "2025-02-06T20:34:40Z")

</div>

Hi,

thanks so much for the reply! Sadly, as seen in the image, it does not accept this.

 ![Thoumii_0-1738874045301.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/9/993a53703f562eed957d608e977c8df0aeeb9480.png)

I think I’ll revert to just accessing the information via the API.

Have a great day!

---

<div class="post-metadata">

**Author:** ![paradummy](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@paradummy](https://community.hubspot.com/u/paradummy)\
**Post date:** [February 8, 2025, 3:52am UTC](https://community.hubspot.com/t/dynamicaly-pull-listings-objects-into-a-module/125412/6 "2025-02-08T03:52:38Z")

</div>

Hey @Thoumii  
If you are on content hub professional you could use [graphql](https://developers.hubspot.com/docs/guides/cms/content/data-driven-content/graphql/use-graphql-data-in-your-website-pages). I can see that the object is available in the GraphiQL tool from hubspot:

 ![paradummy_0-1738986543762.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/a/d/ad7fb61057689ec837e1dd78bde73c79ddd80434.png)
