# List command in contacts API returns null values for custom fields

**URL:** <https://community.hubspot.com/t/list-command-in-contacts-api-returns-null-values-for-custom-fields/45869>\
**Category:** APIs & Integrations\
**Tags:** free\
**Created:** [October 25, 2021, 7:55am UTC](https://community.hubspot.com/t/list-command-in-contacts-api-returns-null-values-for-custom-fields/45869 "2021-10-25T07:55:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![okonig](https://avatars.discourse-cdn.com/v4/letter/o/ed655f/32.png) [@okonig](https://community.hubspot.com/u/okonig)\
**Post date:** [October 25, 2021, 7:55am UTC](https://community.hubspot.com/t/list-command-in-contacts-api-returns-null-values-for-custom-fields/45869/1 "2021-10-25T07:55:00Z")

</div>

When I create a custom field and change some values in contacts and use the list command of the contacts API (and listing my fields in the properties parameter) to retrieve this information, all my custom fields return null values for all contacts. It recognizes the field was created since it starts to show up in the JSON response, however. When using the read command to get these fields for a single contact, these values are returned properly (non-null where they have been changed). How can I retrieve this information for all contacts?

---

<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:** [October 25, 2021, 4:16pm UTC](https://community.hubspot.com/t/list-command-in-contacts-api-returns-null-values-for-custom-fields/45869/2 "2021-10-25T16:16:36Z")

</div>

@okonig , Could you also include your get request URI here as well so we can debug?

---

<div class="post-metadata">

**Author:** ![okonig](https://avatars.discourse-cdn.com/v4/letter/o/ed655f/32.png) [@okonig](https://community.hubspot.com/u/okonig)\
**Post date:** [October 26, 2021, 5:53am UTC](https://community.hubspot.com/t/list-command-in-contacts-api-returns-null-values-for-custom-fields/45869/3 "2021-10-26T05:53:00Z")

</div>

Thanks @dennisedson, but I have managed to solve the problem myself. Cheers!

Oscar

---

<div class="post-metadata">

**Author:** ![CarBelt](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/carbelt/32/44643_2.png) [@CarBelt](https://community.hubspot.com/u/CarBelt)\
**Post date:** [March 7, 2022, 8:10pm UTC](https://community.hubspot.com/t/list-command-in-contacts-api-returns-null-values-for-custom-fields/45869/4 "2022-03-07T20:10:54Z")

</div>

Do you remember what was the solution for this issue?
