Creating an Outbound Sync Stream

Create a stream that specifies the item types to listen for, and uses the container and channel you created in the preceding tasks.

Context

The stream unifies all of the outbound sync-related configurations. When the cron job runs, it refers to the stream, which picks up the changes for all items of the item type specified for the stream. For example, in following ImpEx, the itemTypeForStream column contains Product, which includes all Product subtypes. In this case, outbound sync sends the changes for the Product item as well as for the Product subtypes such as ApparelProduct and VariantProduct.
To send changes for an exact item type only, without subtypes, restrict the item type in the stream using excludedTypes. For example, the following specifies the Product item type only:
You can also filter by attribute using whereClause. For example, the following filters out Products that do not have Online as the CatalogVersion:

Procedure

  1. Log in to Backoffice and select the Integration UI Tool perspective.
  2. Click Start of the navigation pathOutbound Sync Next navigation step Configuration Next navigation step StreamsEnd of the navigation path.
  3. To add a stream, click +.
  4. In the window that appears, define the following details for the stream.
    Field Description Example
    ID Enter a unique name for the stream. MarketingProductStream
    Container Select the container for deltadetect to use. MarketingProductContainer
    Item Type Select the item type to detect changes for. Subtypes of the specified item are included unless you restrict the type using a whereClause, as described above. Product
    Outbound Channel Configuration Select the channel where outbound sync sends updated items. The OutboundChannel converts the items to Integration Objects and sends them to the defined destination. MarketingProductChannel
    Where clause (Optional) Enter any filtering criteria to specify what to sync. Only products that are part of the Online catalog version are synchronized: `{item.catalogVersion} IN ({{SELECT {c.pk} FROM {CatalogVersion as c} WHERE {c.version}='Online'}})`
    Excluded Subtypes (Optional) A list of type codes that are subtypes of the Item Type to exclude from delta detection. VariantProduct
  5. Click Done.
  6. To perform outbound sync, run the outboundSyncCronJob manually or configure it to run according to a defined trigger or schedule. For information about running the cron job, see Scheduling Outbound Sync.