Open topic with navigation

# Insert Files into Enterprise Vault

You can use the `insert` fetch action to insert files into the Enterprise Vault. The user account that runs the connector must have write permissions for the repository.

To use the `insert` action, you must construct some XML that specifies the file to add. The XML must include the following properties:

`VAULTSTOREID` | The ID of the vault to insert the file into.
`ARCHIVEID` | The ID of the archive to insert the file into.

For example:

    <insertXML>
       <insert>
         <reference>na</reference>
         <property name="VAULTSTOREID" value="YOUR_VAULTSTOREID"/>
         <property name="ARCHIVEID" value="YOUR_ARCHIVEID"/>
         <file>
           <type>file</type>
           <displayname>file.doc</displayname>
           <content>c:\folder\file.doc</content>
         </file>
       </insert>
     </insertXML>

Add the XML to the `insert` action as the value of the `insertXML` action parameter. You must URL-encode the XML before adding it to the action command:

    http://host:port/action=Fetch&FetchAction=Insert
                                 &ConfigSection=MyTask
                                 &InsertXML=URL-encoded-XML

For more information about the `insert` action, how to construct the value for the `insertXML` parameter, and how to specify the file to add, refer to the documentation for the `insert` fetch action in the Enterprise Vault Connector Reference.

© 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