Alpha: Document API is currently alpha and subject to breaking changes.
Summary
Get the list items and selected value of a comboBox or dropDownList content control.- Operation ID:
contentControls.choiceList.getItems - API member path:
editor.doc.contentControls.choiceList.getItems(...) - Mutates document:
no - Idempotency:
idempotent - Supports tracked mode:
no - Supports dry run:
no - Deterministic target resolution:
yes
Expected result
Returns a ChoiceListGetItemsResult with items and selectedValue.Input fields
| Field | Type | Required | Description |
|---|---|---|---|
target | object(nodeType=“sdt”) | yes | |
target.kind | enum | yes | "block", "inline" |
target.nodeId | string | yes | |
target.nodeType | "sdt" | yes | Constant: "sdt" |
Example request
Output fields
| Field | Type | Required | Description |
|---|---|---|---|
items | object[] | yes | |
selectedValue | string | no |
Example response
Pre-apply throws
TARGET_NOT_FOUNDINVALID_INPUTCAPABILITY_UNAVAILABLETYPE_MISMATCH
Non-applied failure codes
- None
Raw schemas
Raw input schema
Raw input schema
Raw output schema
Raw output schema

