dms.XMLImport
This job enables inserting or updating an object depending on the result of a previous search.
1. Input Parameters
| Name | Type | Required | Description |
|---|---|---|---|
|
INT |
Yes |
general options for the job (see Flags) |
|
STRING |
Yes |
semicolon-separated job options (e.g. ARCHIVABLE=1;CHECKACCESS=0) (see Parameter Options) |
|
BASE64 |
Yes |
contains object description in XML format (see DMSData XML Format and the parameter XML) with the extension of the |
|
STRING |
Yes |
determines the user context (see the parameter JobUserGUID) |
|
STRING |
No |
Action to perform when no hits (see action table below) |
|
STRING |
No |
Action to perform when one hit (see action table below) |
|
STRING |
No |
Action to perform when multiple hits (see action table below) |
3. Output Parameters
| Name | Type | Dependency | Description |
|---|---|---|---|
|
INT |
— |
new object ID, if job successful, otherwise -1 |
|
INT |
— |
type of the object, otherwise -1 |
|
INT |
— |
number of hits from the search |
|
STRING |
— |
performed action. Possible values: |
5. Return Value
(INT): 0 = Job successful, otherwise error code
Complete list of error codes
6. Action Table
| Search Result (Hit Count) | Parameter Name | Possible Parameter Value | Explanation |
|---|---|---|---|
0 |
|
|
Insert (see dms.XMLInsert) |
1 |
|
|
Do nothing |
>1 |
|
|
Do nothing |
| If the object location is specified or restricted, this location is used both for the search and for insertion. The search can also be used to determine the location. If no location is specified and no object is found, inserting a cabinet or document is not possible. In this case, an error message is generated. If no search fields are specified, the object is inserted. |
<?xml version="1.0" encoding="UTF-8"?>
<DMSData>
<Archive internal_name="addresses">
<ObjectType internal_name="addresses">
<Object>
<Search>
<Fields>
<Field internal_name="contact_person">Schaumer</Field>
<Field internal_name="first_name">Harald</Field>
</Fields>
</Search>
<Fields>
<Field internal_name="phone">0815-12345</Field>
</Fields>
</Object>
</ObjectType>
</Archive>
</DMSData>