Media Management Connector 25.2
Media Management Connector Help

# getContent

The `getContent` method gets the content (the value of the `DRECONTENT` field) for a document or document section.

## Syntax

    getContent([number])

## Arguments

Argument | Description
--- | ---
`number` | (number) The document section for which you want to return the content. If you do not specify this argument, the method returns the content of the active section. For the document object passed to the script's `handler` function, the active section is the first section (section 0).

## Returns

(String). The document content as a string.

## Examples

    local content7 = document:getContent(7)     -- Get content for section 7
    local section = document:getSection(3)      -- Get document for section 3
    local content3 = section:getContent()       -- Get content for section 3
    local content0 = document:getContent()      -- Get content for section 0

Copyright 2025 Open Text
Version 25.2 | Last updated April 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Media Management Connector 25.2

Topic Title: getContent