# Insert Messages into the Exchange Repository

You can use the `insert` fetch action to insert e-mail message (`.eml`) files into the Exchange repository. The insert action does not support attachments.

To insert a message into the repository, you must specify the following properties using the `insertXML` parameter of the `insert` fetch action.

`Mailbox` | The mailbox in which to insert the message, for example, `someone@example.com`.
`FolderPath` | (Optional) The path of the folder in which to insert the message, for example `Inbox/MyFolder`. The default value is `“”`.
`RootFolderId` | (Optional). The ID of the folder that `FolderPath` is relative to. This property accepts the same values as the `BaseMailboxFolder` configuration parameter. The default value of this property is the folder specified by the `BaseMailboxFolder` configuration parameter. For more information about the `BaseMailboxFolder` parameter, refer to the Exchange Web Service Connector Reference.

For example, the value of your `insertXML` action parameter might look like this:

    <insertXML>
     <insert>
      <reference>reference</reference>
      <property name="Mailbox" value="someone@example.com"/>
      <property name="FolderPath" value="Inbox/MyFolder"/>
      <property name="RootFolderId" value="MsgFolderRoot"/>
      <metadata name="fieldname" value="fieldvalue"/>
      <!-- ... -->
      <file>
       <type>file</type>
       <content>C:\My Folder\Message_to_insert.eml</content>
      </file>
     </insert>
    </insertXML>

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 Exchange Web Service 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