Example of Using the Execute Method
The following example demonstrates using the Execute method to perform update, insert, and delete operations on child object. Note that the skipnode operation is defined on the parent object.
Request
The following is an example of a request:
<SiebelMessage MessageType="Integration Object" IntObjectName="Account"
IntObjectFormat="Siebel Hierarchical">
<ListOfAccount>
<Account operation="skipnode">
<Id>1-1-1111</Id>
<ListOfBusiness_Address>
<Business_Address operation="update">
<Id>2-2-2222</Id>
<Postal_Code>94402</Postal_Code> <!--Postal Code changed-->
</Business_Address>
<Business_Address operation="insert">
<Postal_Code>94402</Postal_Code>
<City>San Mateo</City>
<Street_Address>2215 Bridgepointe Parkway</Street_Address>
<State>CA</State>
<Country>USA</Country>
</Business_Address>
</ListOfBusiness_Address>
<ListOfContact>
<Contact operation="delete">
<Id>4-4-4444</Id>
</Contact>
</ListOfContact>
</Account>
</ListOfAccount>
</SiebelMessage>
Response
The following is an example of a response:
<SiebelMessage MessageId="42-21YQ" MessageType="Integration Object"
IntObjectName="Account" IntObjectFormat="Siebel Hierarchical">
<ListOfAccount>
<Account>
<Id>1-1-1111</Id>
<Mod_Id>3</Mod_Id>
<ListOfBusiness_Address>
<Business_Address>
<Id>2-2-2222</Id>
<Mod_Id>1</Mod_Id>
</Business_Address>
<Business_Address>
<Id>42-53Q2W</Id>
<Mod_Id>0</Mod_Id>
</Business_Address>
</ListOfBusiness_Address>
</Account>
</ListOfAccount>
</SiebelMessage>