# Scripts: How to enumerate all options of a Single- or Multi-Select?

**URL:** <https://community.fibery.io/t/scripts-how-to-enumerate-all-options-of-a-single-or-multi-select/1979>\
**Category:** Get Help\
**Created:** [September 6, 2021, 7:28pm UTC](https://community.fibery.io/t/scripts-how-to-enumerate-all-options-of-a-single-or-multi-select/1979 "2021-09-06T19:28:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Blais](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/matt_blais/32/1464_2.png) [@Matt\_Blais](https://community.fibery.io/u/Matt_Blais)\
**Post date:** [September 6, 2021, 7:28pm UTC](https://community.fibery.io/t/scripts-how-to-enumerate-all-options-of-a-single-or-multi-select/1979/1 "2021-09-06T19:28:38Z")

</div>

In a script, how can I enumerate the names and IDs of all the options (entities) in a Single- or Multi-Select field?

Assume that I have its `fieldObjects` entry.

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [September 6, 2021, 8:43pm UTC](https://community.fibery.io/t/scripts-how-to-enumerate-all-options-of-a-single-or-multi-select/1979/2 "2021-09-06T20:43:25Z")

</div>

I don’t know if you mean public id or fibery id, but would this work for you?

```auto
const fibery = context.getService('fibery');
const e = await fibery.executeSingleCommand({
    "command": "fibery.entity/query",
    "args": {
        "query": {
            "q/from": "AppName/SelectFieldName_AppName/ParentType",
            "q/select": [
                "fibery/id",
                "fibery/public-id",
                "enum/name",
            ],
            "q/limit": "q/no-limit"
        },
    }
}
);

console.log(e);

```
