Get *All* Values of a Custom Object from crm_objects Function

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:

{% set webinars = crm_objects("webinars") %}
{{ webinars|pprint }}

But this returns only this data:

(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?

Hey, @thekevinpotts :waving_hand: 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

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.

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:

{% 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.

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