Inserting data

It is possible to change data by sending a request to one of the activated import connectors.

Parameter example:

username=user&password=password&action=import&importName=importconnector

Each object to import should be bundled in a single <object> node. All attributes of an object should be added as properties. The name of a property represents a database field in Ultimo. It is possible to send multiple objects at once. The action to execute per object should be determined when creating an interface.

It is also possible to nest objects, to create a parent/child construction. When nested objects are used, the ${Parent.Id} syntax can be used to refer to the parent. To make sure Ultimo tries to get the value of the parent, attribute Evaluation should be added.

Example body including a nested object

<?xml version="1.0" encoding="UTF-8"?>
<Data>
    <Object Type="EntityName" Action="InsertOrUpdate">
        <Property Name="Id" Value="CODE01"/>
        <Property Name="Description" Value="Object 1"/>
    </Object>
    <Object Type="EntityName" Action="InsertOrSkip">
        <Property Name="Id" Value="CODE02"/>
        <Property Name="Description" Value="Object 2"/>
        <Object Type="EntityName" Action="InsertOrSkip">
            <Property Name="Id.Parent.Id" Value="${Parent.Id}" Evaluate="true"/>
            <Property Name="Id.Child" Value="CODE03"/>
            <Property Name="Description" Value="Nested object"/>
        </Object>
    </Object>
</Data>

Example response (returns the full request with the executed action per obejct or an exception)

<?xml version="1.0" encoding="utf-8"?>
<Data>
    <Object Type="Equipment" Action="Insert">
        <Property Name="Id" Value="CODE01" />
    </Object>
    <Object Type="Equipment" Action="Insert">
        <Property Name="Id" Value="CODE02" />
    </Object>
    <Object Type="Equipment" Action="Insert">
        <Property Name="Id" Value="CODE03" />
    </Object>
</Data>

Last updated