# 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 `Document`.

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 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 2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm