Creating a Simple Integration Object

Creating an Integration Object extends the SAP Commerce Cloud type system and exposes an OData endpoint that you can call to get data about that Integration Object.

Context

Create a Product Integration Object in the system for use in subsequent Integration API requests.
INSERT_UPDATE IntegrationObject; code[unique = true];
 ; GetIntegrationTestGroup3
INSERT_UPDATE IntegrationObjectItem; integrationObject(code)[unique = true]; code[unique = true]; type(code)
 ; GetIntegrationTestGroup3 ; JobImpExMedia ; ImpExMedia
 ; GetIntegrationTestGroup3 ; WorkImpExMedia ; ImpExMedia
 ; GetIntegrationTestGroup3 ; ImpExImportCronJob ; ImpExImportCronJob
INSERT_UPDATE IntegrationObjectItemAttribute; integrationObjectItem(integrationObject(code), code)[unique = true]; attributeName[unique = true]; attributeDescriptor(enclosingType(code), qualifier); returnIntegrationObjectItem(integrationObject(code), code); unique[default = false]
 ; GetIntegrationTestGroup3:ImpExImportCronJob ; code ; ImpExImportCronJob:code ;
 ; GetIntegrationTestGroup3:ImpExImportCronJob ; jobMedia ; ImpExImportCronJob:jobMedia ; GetIntegrationTestGroup3:JobImpExMedia ; true
 ; GetIntegrationTestGroup3:ImpExImportCronJob ; workMedia ; ImpExImportCronJob:workMedia ; GetIntegrationTestGroup3:WorkImpExMedia ; true
 ; GetIntegrationTestGroup3:JobImpExMedia ; code ; ImpExMedia:code ;
 ; GetIntegrationTestGroup3:WorkImpExMedia ; code ; ImpExMedia:code ;
 ; GetIntegrationTestGroup3:WorkImpExMedia ; name ; ImpExMedia:name ;

Procedure

  1. In a web browser, navigate to the SAP Commerce Cloud Administration Console (Administration Console) at https://localhost:9002/ and log in.
  2. Click Start of the navigation pathConsole Next navigation step ImpEx ImportEnd of the navigation path.
  3. Paste the following script into the Import Content field.
    INSERT_UPDATE IntegrationObject; code[unique = true]; 
    ; MyProduct 
    INSERT_UPDATE IntegrationObjectItem; integrationObject(code)[unique=true] ; code[unique = true] ; type(code)
    ; MyProduct   ; Product         ; Product
    ; MyProduct   ; Catalog         ; Catalog
    ; MyProduct   ; CatalogVersion  ; CatalogVersion 
    ; MyProduct   ; Unit            ; Unit
    INSERT_UPDATE IntegrationObjectItemAttribute; integrationObjectItem(integrationObject(code), code)[unique = true]; attributeName[unique = true]; attributeDescriptor(enclosingType(code), qualifier); returnIntegrationObjectItem(integrationObject(code), code); unique[default = false]
    ; MyProduct:Product        ; code           ; Product:code           ; 
    ; MyProduct:Product        ; catalogVersion ; Product:catalogVersion ; MyProduct:CatalogVersion 
    ; MyProduct:Product        ; name           ; Product:name           ; 
    ; MyProduct:Product        ; unit           ; Product:unit           ; MyProduct:Unit
    ; MyProduct:Unit           ; code           ; Unit:code              ;
    ; MyProduct:Catalog        ; id             ; Catalog:id             ;            
    ; MyProduct:CatalogVersion ; catalog        ; CatalogVersion:catalog ; MyProduct:Catalog
    ; MyProduct:CatalogVersion ; version        ; CatalogVersion:version  
  4. Click Import content. The script creates the Product Integration object.