AEM Connector 25.3
AEM Connector Help

# Insert Information into AEM

The connector's `insert` fetch action inserts information into the AEM repository. The connector can insert child entities of entities where the AEM API provides a suitable endpoint.

To use the `insert` action, you must construct some XML that specifies where to add each item, and the information to insert. For example:

    <insertXML>
      <insert>
        <reference>[MyRef]</reference>
        <property name="ID" value="/assets/myassets/example_folder"/>
        <metadata name="name" value="inserted_asset.jpg"/>
        <file>
          <type>file</type>
          <content>C:/path/to/new/asset.jpg</content>
        </file>
      </insert>
    </insertXML>

The `ID` property specifies the path of the parent entity for which you want to insert a child entity.

The `name` metadata field provides a name for the new entity that you want to add.

The `file` element provides the content to insert. There are several ways to provide the content. For more information about using the `insert` fetch action, refer to the AEM Connector Reference. If you provide file content, the connector inserts an asset in the AEM repository. Otherwise, the connector inserts a new folder.

You must add the XML to the action as the value of the `insertXML` action parameter. The XML contained in the `insertXml` parameter 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]

Copyright 2025 Open Text
Version 25.3 | Last updated July 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 AEM Connector 25.3

Topic Title: Insert Information into AEM