Insert Files into Objective ECM

The connector's insert fetch action inserts files into the Objective repository. To use the insert action, you must construct some XML that specifies where to add each file, 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 following table describes the properties that you must set in the insertXML provided to the insert action:

Property Description Required
PATH The desired destination path of the file in the Objective repository, relative to the top-level accessible folder. Yes
FOLDER_OBJECT_TYPE The type to apply to new Objective folders that the connector creates. The default value is dotdA12. No

For example:

<insertXML> 
   <insert> 
     <property name="PATH" value="/test.objectivetest.com/Objective Global Folder/Home/user1/newfile.txt"/>
     <file> 
       <type>content</type> 
       <content>SGVsbG8gV29ybGQNCg==</content> 
     </file> 
   </insert> 
</insertXML>

The <file> element contains the file to insert into the repository. You can supply the path to a file, base-64 encoded content, or choose to send the file to the connector data port. For more information about the insert fetch action and the XML elements you can use in the insertXML parameter, refer to the Objective Connector Reference.