Insert Documents

The insert fetch action inserts information into the Documentum repository. To use the insert action, you must construct some XML that specifies where to add each item, and the information to insert. URL encode the XML and add it to the action as the value of the insertXML action parameter. For example:

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

The insertXML must include:

You can optionally include:

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

<InsertXML>
   <insert>
      <property name="FOLDER" value="documents/pdfs"/>
      <property name="FORMAT" value="pdf"/>
      <metadata name="keywords" value="things"/>
      <!-- ... -->
      <file>
         <type>file</type>
         <content>things.pdf</content>
      </file>
   </insert>
</InsertXML>