AEM Connector 24.1

# 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 2023 Open Text
Version 24.1 | Last updated December 2023

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: IDOL AEM Connector 24.1

Topic Title: Insert Information into AEM