The connector's insert
fetch action inserts information into the StoreAll 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 specify the destination path of the file using the path
property. For example:
<insertXML> <insert> <property name="path" value="file/path/filename.txt"/> <file> <type>content</type> <content>SGVsbG8gV29ybGQNCg==</content> </file> </insert> </insertXML>
If you specify the path of an existing file, the insert fetch action will overwrite it. The content of the file is replaced and any specified metadata is added to the existing metadata for the file.
If an error occurs when a file is inserted into the repository, the file might still be uploaded and some or all of the metadata might be set.
For more information about the insertXml
parameter and the XML that you can use, refer to the StoreAll Connector Reference.
You can also specify metadata to insert:
<insertXML> <insert> <property name="path" value="file/path/filename.txt"/> <metadata name="Field1" value="Value 1"/> <metadata name="Field2" value="Value 2"/> <metadata name="Field3" value="Value 3"/> <metadata name="Field4" value="Value 4"/> <metadata name="Field5" value="Value 5"/> <file> <type>content</type> <content>SGVsbG8gV29ybGQNCg==</content> </file> </insert> </insertXML>
Field names are subject to the following limitations:
Field values are subject to the following limitations:
Fields cannot have attributes or subfields.
|