Transformation Configuration Setup

This pages provides instructions on what transform code should be added to a script manifest file to transform Shopify data into the Unified Order Schema (UOS)

Overview

The Daasity transformation code maps data from the Shopify schema into the Unified Order Schema (UOS) for both online and point-of-sale (POS)

Feature Dependencies

You must have enabled our Code Repository feature in order to both access the Daasity transformation code as well as modify a Script Manifest File enabling this code to execute

We recommend you review the Transformation Configuration section of our Help documentation to familiarize yourself with our workflow engine and script manifest files.

Script Manifest File (YML)

Upstream Transformation Dependencies

This code is dependent on the following integration being installed:

  • Shopify

This code block is dependent on the following upstream code blocks being implemented:

  • Initialization

Transformation Code Requirements

To enable the data transformation from the Shopify schema into UOS, the following code must be run in a workflow:

  uos_shopify:
    integrations:
      - shopify
    scripts:
      - "github://platform-sql-shared/scripts/base/0100_initialization/0150_INI_BAS_sales_channel_mapping.sql"
      - "github://platform-sql-shared/scripts/base/0500_uos/shopify/0510_UOS_BAS_SHOPIFY_locations.sql"
      - "github://platform-sql-shared/scripts/base/0500_uos/shopify/0512_UOS_BAS_SHOPIFY_customers.sql"
      - "github://platform-sql-shared/scripts/base/0500_uos/shopify/0513_UOS_BAS_SHOPIFY_products.sql"
      - "github://platform-sql-shared/scripts/base/0500_uos/shopify/0514_UOS_BAS_SHOPIFY_product_variants.sql"
      - "github://platform-sql-shared/scripts/base/0500_uos/shopify/0515_UOS_BAS_SHOPIFY_orders.sql"
      - "github://platform-sql-shared/scripts/base/0500_uos/shopify/0516_UOS_BAS_SHOPIFY_order_line_Items.sql"
      - "github://platform-sql-shared/scripts/base/0500_uos/shopify/0517_UOS_BAS_SHOPIFY_order_discount_codes.sql"
      - "github://platform-sql-shared/scripts/pro/0500_uos/shopify/0518_UOS_BAS_SHOPIFY_order_shipping_service.sql"
      - "github://platform-sql-shared/scripts/base/0500_uos/shopify/0519_UOS_BAS_SHOPIFY_order_payments.sql"
      - "github://platform-sql-shared/scripts/base/0500_uos/shopify/0520_UOS_BAS_SHOPIFY_transactions.sql"
      - "github://platform-sql-shared/scripts/pro/0500_uos/shopify/0521_UOS_BAS_SHOPIFY_refunds.sql"
      - "github://platform-sql-shared/scripts/base/0500_uos/shopify/0522_UOS_BAS_SHOPIFY_refund_line_items.sql"
      - "github://platform-sql-shared/scripts/base/0500_uos/shopify/0523_UOS_BAS_SHOPIFY_fulfillments.sql"
      - "github://platform-sql-shared/scripts/base/0500_uos/shopify/0524_UOS_BAS_SHOPIFY_order_item_fulfillments.sql"
      - "github://platform-sql-shared/scripts/base/0500_uos/shopify/0525_UOS_BAS_SHOPIFY_current_inventory_levels.sql"
      - "github://platform-sql-internal/scripts/base/0500_uos/shopify/0526_UOS_BAS_SHOPIFY_sales_report.sql"
      - "github://platform-sql-internal/scripts/base/2000_shopify_reports/2000_SHP_BAS_shopify_sales_report.sql"

Unified Order Schema

Code to update the App ID from Shopify to the Sales Channel in the Shopify UI

Code to populate the UOS tables and convert the timezone of the order to the timezone as set in the Daasity App

To populate the [uos.sales_report] tables you must include the two scripts that are from the Daasity internal repository

Optional (alternative) code to populate the UOS tables and convert the timezone of the orders to the timezone of the Shopify store. Replace the above standard Shopify code with the "_tz" versions listed below:

Last updated