Updating different UDBO types in a single run
It is possible to update (not insert) persons with different user defined business object (UDBO) types in a single run using only one business object definition.
| Since the persons are already in Planon, the XML and Enterprise Talk definition do not need the UDBO type information. |
After first adding the persons in the
import example, you can now update the person's first names by using the following XML:
<?xml version='1.0' encoding='UTF-8'?>
<document>
<businessobjects>
<Person>
<Code>000101</Code>
<FirstName>Alex</FirstName>
</Person>
<Person>
<Code>000102</Code>
<FirstName>Bert</FirstName>
</Person>
</businessobjects>
</document>
Complete the following steps to update the existing data:
1. Create an Enterprise Talk definition.
2. Add an import document.
3. Add a business object definition based on BO Person with XML node Person.
4. Add the Code and FirstName field to the business object definition.
5. Make the Code field ‘Part of the search key’.
This can be any other (combination of) field(s).
6. Run the definition.
The two existing persons (based on different UDBO types) will be updated.