Content Manager Connector 25.4
Content Manager Connector Help

# Insert Records into Content Manager

The connector's `insert` fetch action can insert records into Content Manager. To use the `insert` action, you must construct some XML that specifies the information to insert.

    <insertXML>
        <insert>
            <reference>TEST</reference>
            <metadata name="Title" value="My Inserted Record"/>
            <metadata name="Origin" value="TestInsertionOrigin"/>
            <metadata name="RecordType" value="Document"/>
            <file>
                <type>content</type>
                <content>aGVsbG8gd29ybGQ=</content>
            </file>
        </insert>
    </insertXML>

Specify the following metadata:

`Title` | The title of the inserted record.
`Origin` | Optional. Sets the origin of the document in Content Manager. The default value is the value of the `Origin` parameter in the connector's configuration file.
`RecordType` | Optional. The record type to use when inserting items into Content Manager. The default value is the value of the `DefaultInsertRecordType` parameter in the connector's configuration file.

The `file` element specifies the file to insert (this is optional). There are several ways to specify the file. For example, you can specify the path to a file or provide the content base-64 encoded. For more information about how to specify the source file, refer to the documentation for the `insert` action in the Content Manager Connector Reference.

After you have constructed the insert XML, add this XML to the insert fetch action as the value of the `insertXML` action parameter. The XML must be URL encoded before being used in the action command. For example:

    http://host:port/action=Fetch&FetchAction=Insert
                                 &ConfigSection=MyTask
                                 &InsertXML=[URL encoded XML]

For more information about using the `insert` fetch action, refer to the Content Manager Connector Reference.

Copyright 2025 Open Text
Version 25.4 | Last updated October 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 Content Manager Connector 25.4

Topic Title: Insert Records into Content Manager