# contentControls.choiceList.getItems

> Get the list items and selected value of a comboBox or dropDownList content control.



- Member path: `doc.contentControls.choiceList.getItems(…)`
- Mutates document: no
- Idempotency: `idempotent`
- Supports tracked mode: no
- Supports dry run: no

## Expected result

Returns a ChoiceListGetItemsResult with items and selectedValue.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {},
  "type": "object",
  "properties": {
    "target": {
      "type": "object",
      "properties": {
        "kind": {
          "enum": [
            "block",
            "inline"
          ]
        },
        "nodeType": {
          "const": "sdt"
        },
        "nodeId": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "kind",
        "nodeType",
        "nodeId"
      ]
    }
  },
  "additionalProperties": false,
  "required": [
    "target"
  ]
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {},
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "selectedValue": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "required": [
    "items"
  ]
}
```

## Pre-apply throws

- `TARGET_NOT_FOUND`
- `INVALID_INPUT`
- `CAPABILITY_UNAVAILABLE`
- `TYPE_MISMATCH`

## Non-applied receipt codes

- None

