Skip to content

Developed the starter kit for the integration between Content hub and Order cloud, which includes functionality like product creation/update with assets from Content hub to Order Cloud.

Notifications You must be signed in to change notification settings

chauhanvikas/Sitecore-ContentHub-And-OrderCloud-Integration-Starter-Kit

Repository files navigation

Overview

The Sitecore Content hub and Order Cloud are integrated using this starter kit. This starter kit's objectives include syncing Products with all of their associated assets to Order Cloud. The author of the content hub will use PCM modules to manage the products and map the necessary assets to products. Once published, it will use the is starting kit to sync to Order cloud.

Following are some already available functions.

  • Sync product at the time of Creation.
  • Product update with related assets.

To-do

  • Deleted products sync
  • Deleted assets sync
  • Product Category sync

Components Involved in Integration

  • Content Hub
  • Order Cloud
  • Azure Bus (Queue)
  • Azure Function
  • .Net Core API

Integartion Flow

image

Azure Service Bus

The message was sent to the service bus by the content hub, which then queued it up as a message in the Azure service bus.Please follow the following links to configure the Azure Bus. https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-quickstart-portal https://docs.stylelabs.com/contenthub/4.2.x/content/integrations/integration-components/actions/action-type-azure-service-bus.html

Azure Function

Azure Functions are a subset of Azure Service Bus Triggers, and its primary function is to listen for queue events and activate the Product Synchronization API to sync products. "Contenthub.Entity.Processing" project is implemented for Azure function. Setup the ** connectionstring** in local.setting.json file and **URI" property with the Web API end point in function1 class line no #73 of Azure function project. Please refer to this link for deployment of Azure function https://learn.microsoft.com/en-us/azure/azure-functions/functions-deployment-technologies

Web API :

The Product Sync API is a.NET Core Web API that contains all the logic necessary to extract product entity data from the Content Hub and sync it with the Order cloud. This API connects the system and all necessary operations between the Content Hub and Order cloud SDK.

Setup

image

About

Developed the starter kit for the integration between Content hub and Order cloud, which includes functionality like product creation/update with assets from Content hub to Order Cloud.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages