Shpfy Shop Inventory

Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/30112

Table Type: Company

Table Name: Shpfy Shop Inventory
Database Table Name: CRONUS UK Ltd_$Shpfy Shop Inventory$ec255f57-31d0-4ca2-b751-f2fa7c745abb

Table Number: 30112

Due to how Dynamics BC tables and columns are named, square brackets need to be wrapped around the table name and column names. Below are example queries showing how Shpfy Shop Inventory can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [CRONUS UK Ltd_$Shpfy Shop Inventory$ec255f57-31d0-4ca2-b751-f2fa7c745abb]

Show/hide an example select of all columns by name

SELECT
   [Shop Code]
   ,[Product Id]
   ,[Variant Id]
   ,[Location Id]
   ,[Inventory Item Id]
   ,[Shopify Stock]
   ,[Stock]
   ,[Last Synced On]
   ,[Last Calculated On]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$Shpfy Shop Inventory$ec255f57-31d0-4ca2-b751-f2fa7c745abb]

Show/hide an example select of all columns including those from all joined tables

SELECT
   *
FROM
   [CRONUS UK Ltd_$Shpfy Shop Inventory$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Shop Inventory]
LEFT JOIN
   [CRONUS UK Ltd_$Shpfy Shop$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Shop]
      ON
         [Shpfy Shop Inventory].[Shop Code] = [Shpfy Shop].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location]
      ON
         [Shpfy Shop Inventory].[Location Id] = [Location].[$systemId]
LEFT JOIN
   [User] AS [User]
      ON
         [Shpfy Shop Inventory].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Shpfy Shop Inventory].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Shpfy Shop Inventory table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Shop Code SearchShop CodeNormalCode20Shop Codenvarchar(40)
Key to join to the Shpfy Shop table.

Show/hide example query

SELECT
	       [Shpfy Shop Inventory].[Shop Code]
	       ,[Shpfy Shop].[Code]
	FROM
	       [CRONUS UK Ltd_$Shpfy Shop Inventory$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Shop Inventory]
	LEFT JOIN
	       [CRONUS UK Ltd_$Shpfy Shop$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Shop]
	              ON
	                     [Shpfy Shop Inventory].[Shop Code] = [Shpfy Shop].[Code]
2Product Id Primary Key SearchProduct IdNormalBigInteger8Product Idbigint
3Variant Id Primary Key SearchVariant IdNormalBigInteger8Variant Idbigint
4Location Id Primary Key SearchLocation IdNormalBigInteger8Location Idbigint
Key to join to the Location table.

Show/hide example query

SELECT
	       [Shpfy Shop Inventory].[Location Id]
	       ,[Location].[$systemId]
	FROM
	       [CRONUS UK Ltd_$Shpfy Shop Inventory$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Shop Inventory]
	LEFT JOIN
	       [CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location]
	              ON
	                     [Shpfy Shop Inventory].[Location Id] = [Location].[$systemId]
5Inventory Item Id Primary Key SearchInventory Item IdNormalBigInteger8Inventory Item Idbigint
6Shopify Stock SearchShopify StockNormalInteger4Shopify Stockint
7Stock SearchLast Calculated StockNormalInteger4Stockint
8Last Synced On SearchLast Synced OnNormalDateTime8Last Synced Ondatetime
9Last Calculated On SearchLast Calculated OnNormalDateTime8Last Calculated Ondatetime
10Location Name SearchLocation NameFlowFieldText250
2000000000$systemId SearchSystem IDNormalGUID16$systemIduniqueidentifier
2000000001SystemCreatedAt SearchCreated AtNormalDateTime8$systemCreatedAtdatetime
2000000002SystemCreatedBy SearchCreated ByNormalGUID16$systemCreatedByuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
	       [Shpfy Shop Inventory].[$systemCreatedBy]
	       ,[User].[User Security ID]
	FROM
	       [CRONUS UK Ltd_$Shpfy Shop Inventory$ec255f57-31d0-4ca2-b751-f2fa7c745abb] AS [Shpfy Shop Inventory]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [Shpfy Shop Inventory].[$systemCreatedBy] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier

Leave a Reply

Your email address will not be published. Required fields are marked *