# contentControls.getBinding

> Get the data binding metadata (w:dataBinding) of a content control.



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

## Expected result

Returns the ContentControlBinding or null if no binding is set.

## 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": {},
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "storeItemId": {
          "type": "string"
        },
        "xpath": {
          "type": "string"
        },
        "prefixMappings": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "storeItemId",
        "xpath"
      ]
    },
    {
      "type": "null"
    }
  ]
}
```

## Pre-apply throws

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

## Non-applied receipt codes

- None

