Alpha: Document API is currently alpha and subject to breaking changes.
Summary
Get the data binding metadata (w:dataBinding) of a content control.- Operation ID:
contentControls.getBinding - API member path:
editor.doc.contentControls.getBinding(...) - Mutates document:
no - Idempotency:
idempotent - Supports tracked mode:
no - Supports dry run:
no - Deterministic target resolution:
yes
Expected result
Returns the ContentControlBinding or null if no binding is set.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
Variant 1
| Field | Type | Required | Description |
|---|---|---|---|
prefixMappings | string | no | |
storeItemId | string | yes | |
xpath | string | yes |
Variant 2
No fields.Example response
Pre-apply throws
TARGET_NOT_FOUNDINVALID_INPUTCAPABILITY_UNAVAILABLE
Non-applied failure codes
- None
Raw schemas
Raw input schema
Raw input schema
Raw output schema
Raw output schema

