The connector's insert
fetch action inserts information into the HP Object Store repository.
To use the insert
action, you must construct some XML that specifies where to add each item, and the information to insert. You must add the XML to the action as the value of the insertXML
action parameter. The exact structure of the XML depends on the type of item that you want to insert.
The XML contained in the insertXml
parameter 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 HPObjectStore Connector Reference.
To insert a container, your XML must include the following properties:
HP_TENANT_ID
|
The Tenant ID (the same as the TenantID configuration parameter). |
HP_CONTAINER_NAME
|
The name to use for the new container. |
For example, the value of your insertXML
action parameter might look like this:
<insertXML> <insert> <property name="HP_TENANT_ID" value="24269500282003"/> <property name="HP_CONTAINER_NAME" value="MyNewContainer" /> </insert> </insertXML>
To insert an object, your XML must include the following properties:
HP_TENANT_ID
|
The Tenant ID (the same as the TenantID configuration parameter). |
HP_CONTAINER_NAME
|
The name of the container to insert the object into. |
HP_OBJECT_NAME
|
The name to use for the new object. |
For example, the value of your insertXML
action parameter might look like this:
<insertXML> <insert> <property name="HP_TENANT_ID" value="24269500282003"/> <property name="HP_CONTAINER_NAME" value="MyContainer" /> <property name="HP_OBJECT_NAME" value="my/new/object.txt" /> <metadata name="MyField" value="MyValue" /> <file> <type>type</type> <content>C:\MyFiles\MyFile.txt</content> </file> </insert> </insertXML>
|