Root Items for Integration Objects

Specify a root item for every Integration Object to ensure full outbound sync and Backoffice Integration Object modeling functionality.

The root property is a mandatory Boolean property set on the IntegrationObjectItem type. By default, it is set to false. If you have existing Integration Object definitions for which a root item is not specified, you might not be able to use some of the advanced outbound sync features. Additionally, Integration Objects that contain circular dependencies may not display properly in Backoffice.
The root item designates the main item in an Integration Object, which means that it's the primary item being exchanged with an external system inbound or outbound. There can only be one root item for each Integration Object. The following example is for an Outbound Customer Integration Object with the root item Customer:
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.