Advanced Integration Object Modeling

Some modeling tasks require configuration via ImpEx or Meta API instead of Backoffice.

Advanced Integration Object modeling tasks include:
  • Linking an owner attribute between Customer and Address

  • Creating a relationship between Order and Customer

Modeling an Owner Attribute for Customer and Address

Use either ImpEx or the Meta API to model the owner attribute to link the Customer and Address Integration Objects.

Context

Because Backoffice does not support modeling of the owner attribute via the Integration UI Tool, use either ImpEx or the Meta API instead.

Modeling via ImpEx

Procedure

In the Administration Console, import the following ImpEx that includes the owner attribute:
INSERT_UPDATE IntegrationObject; code[unique = true]; integrationType(code) 
; OutboundCustomer; INBOUND 
 
INSERT_UPDATE IntegrationObjectItem; integrationObject(code)[unique = true]; code[unique = true]; type(code); root[default = false]; itemTypeMatch(code) 
; OutboundCustomer	; Address 	; Address 	; 	; 	;  
; OutboundCustomer	; Customer	; Customer	; true	; 	;  
 
INSERT_UPDATE IntegrationObjectItemAttribute; integrationObjectItem(integrationObject(code), code)[unique = true]; attributeName[unique = true]; attributeDescriptor(enclosingType(code), qualifier); returnIntegrationObjectItem(integrationObject(code), code); unique[default = false]; autoCreate[default = false] 
; OutboundCustomer:Address 	; publicKey	; Address:publicKey 	;                          	; true	;  
; OutboundCustomer:Address 	; owner    	; Address:owner     	; OutboundCustomer:Customer	; 	;  
; OutboundCustomer:Customer	; uid      	; Customer:uid      	;                          	; true	;  
; OutboundCustomer:Customer	; addresses	; Customer:addresses	; OutboundCustomer:Address 	; 	;  

Modeling via Meta API

Procedure

Send POST request https://localhost:9002/odata2webservices/IntegrationService/IntegrationObjects with the following body:

Creating a Relationship Between Order and Customer

Configure an attribute for a specified user type, such as the Customer Integration Object’s customerID attribute.

Context

The Order Integration Object is associated with the User Integration Object, but Customer is a subtype of User. Therefore, to use a Customer attribute such as customerID, create that relationship using either ImpEx or the Meta API.

The following scenarios use an example Integration Object called MKTOutboundOrderTest. The steps assume that the Integration Object is already created and available in Backoffice.

Modeling via ImpEx

Procedure

  1. Navigate to Backoffice and log in.
  2. Select the Integration UI Tool perspective and select Integration Object Modeling if it is not already selected.
  3. Select the Integration Object from the dropdown list and select the Metadata Viewer button.
  4. In the ImpEx View, select Copy to Clipboard and paste the contents into a text file.
  5. In the text file, replace the User type with Customer and User:uid with Customer: customerID, as shown.
    INSERT_UPDATE IntegrationObject; code[unique = true]; integrationType(code)
    ; MKTOutboundOrderTest; INBOUND
    
    INSERT_UPDATE IntegrationObjectItem; integrationObject(code)[unique=true]; code[unique = true]; type(code)
    ; MKTOutboundOrderTest    ; Order       ; Order
    ; MKTOutboundOrderTest    ; Customer    ; Customer
    
    INSERT_UPDATE IntegrationObjectItemAttribute; integrationObjectItem(integrationObject(code), code)[unique = true]; attributeName[unique = true]; attributeDescriptor(enclosingType(code), qualifier); returnIntegrationObjectItem(integrationObject(code), code); unique[default = false]; autoCreate[default = false]
    ; MKTOutboundOrderTest:Order       ; user          ; Order:user             ; MKTOutboundOrderTest:Customer    ;     ;
    ; MKTOutboundOrderTest:Order       ; code          ; Order:code             ;                                  ; true    ;
    ; MKTOutboundOrderTest:Customer    ; name          ; Customer:name          ;                                  ;     ;
    ; MKTOutboundOrderTest:Customer    ; customerID    ; Customer:customerID    ;                                  ; true    ;
    
  6. Copy the updated ImpEx.
  7. Navigate to and log in to the Administration Console.
  8. Select Start of the navigation pathConsole Next navigation step ImpEx ImportEnd of the navigation path.
  9. In the Import content area, paste the updated ImpEx. Select Import content.

Modeling via Meta API

Procedure

Send POST request https://localhost:9002/odata2webservices/IntegrationService/IntegrationObjects with the following body: