# Empty enum\_value and multi\_enum\_values in Python client

**URL:** <https://forum.asana.com/t/empty-enum-value-and-multi-enum-values-in-python-client/244270>\
**Category:** API & Developers\
**Created:** [3 November 2022 16:08 UTC](https://forum.asana.com/t/empty-enum-value-and-multi-enum-values-in-python-client/244270 "2022-11-03T16:08:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon44252804](https://luna1.co/8d76cd.png) [@anon44252804](https://forum.asana.com/u/anon44252804)\
**Post date:** [3 November 2022 16:08 UTC](https://forum.asana.com/t/empty-enum-value-and-multi-enum-values-in-python-client/244270/1 "2022-11-03T16:08:48Z")

</div>

I’m working on querying the Asana API using the Python client. I’m specifically trying to access some custom field values on a project’s tasks. There are two sets of custom fields on this object - one that’s a single-select, and one that’s a multi-select.

First, I query by task id:

_task\_example = client.tasks.find\_by\_id(\<task\_id\>)_

I get back the task, and start trying to dive into the custom fields. I can see the enum\_value key exists (and have confirmed it’s populated on the task in question)… and yet the enum\_value is None!

_task\_example[‘custom\_fields’][1].keys()_  
_dict\_keys([‘gid’, ‘enabled’, ‘enum\_options’, ‘enum\_value’, ‘name’, ‘description’, ‘created\_by’, ‘display\_value’, ‘resource\_subtype’, ‘resource\_type’, ‘type’])_

_print(task\_example[‘custom\_fields’][1][‘enum\_value’])_  
_None_

I’m hitting the same problem when I try to look at the value of multi\_enum\_values.

What the heck? Everything I’ve read in the docs implies that this is where I should be seeing these values, but I just don’t. Is it permissions/account related? Is the Python API client broken? Anyone had any similar experiences?

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [4 November 2022 04:53 UTC](https://forum.asana.com/t/empty-enum-value-and-multi-enum-values-in-python-client/244270/2 "2022-11-04T04:53:01Z")

</div>

Hi @anon44252804,

I’m not familiar with the Python client specifically, but I think you’ll need to use the `opt_fields` parameter to get the task’s custom field details, kind of as shown here:

> [@Get from a Task the display value of a specific custom field in python](https://forum.asana.com/t/get-from-a-task-the-display-value-of-a-specific-custom-field-in-python/152188/3):
>
> Yes sure, with the code client.tasks.get\_tasks\_for\_project(project\_gid , opt\_fields=(‘gid’,‘name’,‘custom\_fields.display\_value’)) I can take all the display value of the custom fields I have in the project. To take the display value of just one, let say the display value of the custom field that have the gid value of ‘120000000400’, how could I do it?

In that example they’re getting the `display_value`; you’ll need to specify the `enum_value` and `multi_enum_values` instead.

---

<div class="post-metadata">

**Author:** ![anon44252804](https://luna1.co/8d76cd.png) [@anon44252804](https://forum.asana.com/u/anon44252804)\
**Post date:** [4 November 2022 13:48 UTC](https://forum.asana.com/t/empty-enum-value-and-multi-enum-values-in-python-client/244270/3 "2022-11-04T13:48:59Z")

</div>

That was it, thank you!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/system/32/276370_2.png) [@system](https://forum.asana.com/u/system)\
**Post date:** [30 May 2025 18:56 UTC](https://forum.asana.com/t/empty-enum-value-and-multi-enum-values-in-python-client/244270/4 "2025-05-30T18:56:15Z")

</div>

Closed on 30 May 2025 18:56 UTC


