Open topic with navigation

# 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]

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

_FT_HTML5_bannerTitle.htm