Root Items for Integration Objects
Specify a root item for every Integration Object to ensure full outbound sync and Backoffice Integration Object modeling functionality.
INSERT_UPDATE IntegrationObject; code[unique = true]
; OutboundCustomer
INSERT_UPDATE IntegrationObjectItem; integrationObject(code)[unique = true]; code[unique = true]; type(code); root
; OutboundCustomer ; Customer ; Customer ; true
; OutboundCustomer ; Address ; Address ; false
$integrationItem = integrationObjectItem(integrationObject(code), code)
$attributeDescriptor = attributeDescriptor(enclosingType(code), qualifier)
$returnItem = returnIntegrationObjectItem(integrationObject(code), code)
INSERT_UPDATE IntegrationObjectItemAttribute; $integrationItem[unique = true]; attributeName[unique = true]; $attributeDescriptor; $returnItem ; unique
; OutboundCustomer:Customer ; uid ; Customer:uid ; ; true
; OutboundCustomer:Customer ; addresses ; Customer:addresses ; OutboundCustomer:Address ; false
; OutboundCustomer:Address ; owner ; Address:owner ; OutboundCustomer:Customer ; true
; OutboundCustomer:Address ; email ; Address:email ; ; true
In the example above, specifying true for the Integration Object Item Customer designates it as the primary item for processing while Address is a detail about the customer. This means that even if it's only the address that needs to be updated, the change must be processed as part of the Customer payload. In the example above, Customer and Address represent a parent-child relationship. A child Integration Object Item is defined as an Integration Object Item that has a reference to the root Integration Object Item (parent). For example, the address is always associated with an owner such as a Customer, Employee, or Company.
For information on how root items affect outbound sync, see Configuring Outbound Sync.