# Custom Object to expand automatically.

**URL:** <https://community.hubspot.com/t/custom-object-to-expand-automatically/31459>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [February 8, 2021, 11:44pm UTC](https://community.hubspot.com/t/custom-object-to-expand-automatically/31459 "2021-02-08T23:44:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SKalyan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/skalyan/32/78471_2.png) [@SKalyan](https://community.hubspot.com/u/SKalyan)\
**Post date:** [February 8, 2021, 11:44pm UTC](https://community.hubspot.com/t/custom-object-to-expand-automatically/31459/1 "2021-02-08T23:44:03Z")

</div>

Hi All,

I created using the API a custom object. I can create an instance of the object and associate it with a contact also. The custom object shows in the right menu when I pull up a contact.

They are asking to display/expand all the fields/property of the custom object in the right navigation. Right now it is only displaying the primaryDisplayProperty.

Thanks.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [February 9, 2021, 7:48pm UTC](https://community.hubspot.com/t/custom-object-to-expand-automatically/31459/2 "2021-02-09T19:48:43Z")

</div>

Hello @SKalyan

Have you looked at the **secondaryDisplayProperties**?

Example:

```lia-code-sample
"secondaryDisplayProperties": [
 "hs_created_by_user_id",
 "hs_object_id"
 ]

```

---

<div class="post-metadata">

**Author:** ![SKalyan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/skalyan/32/78471_2.png) [@SKalyan](https://community.hubspot.com/u/SKalyan)\
**Post date:** [February 12, 2021, 8:59pm UTC](https://community.hubspot.com/t/custom-object-to-expand-automatically/31459/3 "2021-02-12T20:59:19Z")

</div>

Thanks. This has a limit of only 2 properties. Would be nice if it was more. But this is better than none.
