Document apiReferenceContent controls

contentControls.getContent

Get the text content of a content control.

read-onlyidempotent
doc.contentControls.getContent(…)

Expected result

Returns a ContentControlsGetContentResult with the content string and format.

Inputs

targetobjectrequired
Fields
kind"block" | "inline"required
nodeType"sdt"required
nodeIdstringrequired

Result

Output fields
contentstringrequired
format"text" | "html"required

Failures

Pre-apply throws

  • TARGET_NOT_FOUND
  • INVALID_INPUT
  • CAPABILITY_UNAVAILABLE

Raw schemas

Open the generated JSON artifact for the exact input, output, success, and failure schemas represented by this contract version.

View raw JSON schemas