Standard Purchase Line

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

Table Type: Company

Table Name: Standard Purchase Line
Database Table Name: CRONUS UK Ltd_$Standard Purchase Line$437dbf0e-84ff-417a-965d-ed2bb9650972

Table Number: 174

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 Standard Purchase Line can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [CRONUS UK Ltd_$Standard Purchase Line$437dbf0e-84ff-417a-965d-ed2bb9650972]

Show/hide an example select of all columns by name

SELECT
   [timestamp]
   ,[Standard Purchase Code]
   ,[Line No_]
   ,[Type]
   ,[No_]
   ,[Description]
   ,[Quantity]
   ,[Amount Excl_ VAT]
   ,[Unit of Measure Code]
   ,[Shortcut Dimension 1 Code]
   ,[Shortcut Dimension 2 Code]
   ,[Variant Code]
   ,[Dimension Set ID]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$Standard Purchase Line$437dbf0e-84ff-417a-965d-ed2bb9650972]

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

SELECT
   *
FROM
   [CRONUS UK Ltd_$Standard Purchase Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Purchase Line]
LEFT JOIN
   [CRONUS UK Ltd_$Unit of Measure$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Unit of Measure]
      ON
         [Standard Purchase Line].[Unit of Measure Code] = [Unit of Measure].[Code]

Show/hide columns in Standard Purchase Line table

Column IDColumn NameData Type
1timestamp Searchtimestamp
2Standard Purchase Code Primary Key Searchnvarchar(20)
3Line No_ Primary Key Searchint
4Type Searchint
5No_ Searchnvarchar(40)
6Description Searchnvarchar(200)
7Quantity Searchdecimal(38,38)
8Amount Excl_ VAT Searchdecimal(38,38)
9Unit of Measure Code Searchnvarchar(20)
Key to join to the Unit of Measure table.

Show/hide example query

SELECT
       [Standard Purchase Line].[Unit of Measure Code]
       ,[Unit of Measure].[Code]
FROM
       [CRONUS UK Ltd_$Standard Purchase Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Purchase Line]
LEFT JOIN
       [CRONUS UK Ltd_$Unit of Measure$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Unit of Measure]
              ON
                     [Standard Purchase Line].[Unit of Measure Code] = [Unit of Measure].[Code]
10Shortcut Dimension 1 Code Searchnvarchar(40)
11Shortcut Dimension 2 Code Searchnvarchar(40)
12Variant Code Searchnvarchar(20)
13Dimension Set ID Searchint
14$systemId Searchuniqueidentifier
15$systemCreatedAt Searchdatetime
16$systemCreatedBy Searchuniqueidentifier
17$systemModifiedAt Searchdatetime
18$systemModifiedBy Searchuniqueidentifier

Show/hide tables related from Standard Purchase Line table

Leave a Reply

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