Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/437
Table Type: Company
Table Name: IC Inbox Purchase Line
Database Table Name: CRONUS UK Ltd_$IC Inbox Purchase Line$437dbf0e-84ff-417a-965d-ed2bb9650972
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 IC Inbox Purchase Line can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$IC Inbox Purchase Line$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Document Type]
,[Document No_]
,[Line No_]
,[Description]
,[Description 2]
,[Quantity]
,[Direct Unit Cost]
,[Line Discount _]
,[Line Discount Amount]
,[Amount Including VAT]
,[Job No_]
,[Indirect Cost _]
,[Receipt No_]
,[Receipt Line No_]
,[Drop Shipment]
,[Currency Code]
,[VAT Base Amount]
,[Unit Cost]
,[Line Amount]
,[IC Partner Ref_ Type]
,[IC Partner Reference]
,[IC Partner Code]
,[IC Transaction No_]
,[Transaction Source]
,[Item Ref_]
,[IC Item Reference No_]
,[Unit of Measure Code]
,[Requested Receipt Date]
,[Promised Receipt Date]
,[Return Shipment No_]
,[Return Shipment Line No_]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$IC Inbox 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_$IC Inbox Purchase Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [IC Inbox Purchase Line]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header Archive$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header Archive]
ON
[IC Inbox Purchase Line].[Document Type] = [Sales Header Archive].[Document Type]
AND
[IC Inbox Purchase Line].[Document No_] = [Sales Header Archive].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header]
ON
[IC Inbox Purchase Line].[Document Type] = [Sales Header].[Document Type]
AND
[IC Inbox Purchase Line].[Document No_] = [Sales Header].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency]
ON
[IC Inbox Purchase Line].[Currency Code] = [Currency].[Code]
LEFT JOIN
[CRONUS UK Ltd_$IC Partner$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [IC Partner]
ON
[IC Inbox Purchase Line].[IC Partner Code] = [IC Partner].[Code]
LEFT JOIN
[User] AS [User]
ON
[IC Inbox Purchase Line].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[IC Inbox Purchase Line].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in IC Inbox Purchase Line table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Document Type | Document Type | Normal | Option | 4 | Document Type | int |
Available options are:
| |||||||
3 | Document No. | Document No. | Normal | Code | 20 | Document No_ | nvarchar(40) |
4 | Line No. | Line No. | Normal | Integer | 4 | Line No_ | int |
11 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
12 | Description 2 | Description 2 | Normal | Text | 50 | Description 2 | nvarchar(100) |
15 | Quantity | Quantity | Normal | Decimal | 12 | Quantity | decimal(38,38) |
22 | Direct Unit Cost | Direct Unit Cost | Normal | Decimal | 12 | Direct Unit Cost | decimal(38,38) |
27 | Line Discount % | Line Discount % | Normal | Decimal | 12 | Line Discount _ | decimal(38,38) |
28 | Line Discount Amount | Line Discount Amount | Normal | Decimal | 12 | Line Discount Amount | decimal(38,38) |
30 | Amount Including VAT | Amount Including Tax | Normal | Decimal | 12 | Amount Including VAT | decimal(38,38) |
45 | Job No. | Job No. | Normal | Code | 20 | Job No_ | nvarchar(40) |
Key to join to the Job table.Show/hide example querySELECT [IC Inbox Purchase Line].[Job No_] ,[Job].[No_] FROM [CRONUS UK Ltd_$IC Inbox Purchase Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [IC Inbox Purchase Line] LEFT JOIN [CRONUS UK Ltd_$Job$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Job] ON [IC Inbox Purchase Line].[Job No_] = [Job].[No_] | |||||||
54 | Indirect Cost % | Indirect Cost % | Normal | Decimal | 12 | Indirect Cost _ | decimal(38,38) |
63 | Receipt No. | Receipt No. | Normal | Code | 20 | Receipt No_ | nvarchar(40) |
64 | Receipt Line No. | Receipt Line No. | Normal | Integer | 4 | Receipt Line No_ | int |
73 | Drop Shipment | Drop Shipment | Normal | Boolean | 4 | Drop Shipment | tinyint |
91 | Currency Code | Currency Code | Normal | Code | 10 | Currency Code | nvarchar(20) |
Key to join to the Currency table.Show/hide example querySELECT [IC Inbox Purchase Line].[Currency Code] ,[Currency].[Code] FROM [CRONUS UK Ltd_$IC Inbox Purchase Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [IC Inbox Purchase Line] LEFT JOIN [CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency] ON [IC Inbox Purchase Line].[Currency Code] = [Currency].[Code] | |||||||
99 | VAT Base Amount | Tax Base Amount | Normal | Decimal | 12 | VAT Base Amount | decimal(38,38) |
100 | Unit Cost | Unit Cost | Normal | Decimal | 12 | Unit Cost | decimal(38,38) |
103 | Line Amount | Line Amount | Normal | Decimal | 12 | Line Amount | decimal(38,38) |
107 | IC Partner Ref. Type | IC Partner Ref. Type | Normal | Option | 4 | IC Partner Ref_ Type | int |
Available options are:
| |||||||
108 | IC Partner Reference | IC Partner Reference | Normal | Code | 20 | IC Partner Reference | nvarchar(40) |
125 | IC Partner Code | IC Partner Code | Normal | Code | 20 | IC Partner Code | nvarchar(40) |
Key to join to the IC Partner table.Show/hide example querySELECT [IC Inbox Purchase Line].[IC Partner Code] ,[IC Partner].[Code] FROM [CRONUS UK Ltd_$IC Inbox Purchase Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [IC Inbox Purchase Line] LEFT JOIN [CRONUS UK Ltd_$IC Partner$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [IC Partner] ON [IC Inbox Purchase Line].[IC Partner Code] = [IC Partner].[Code] | |||||||
126 | IC Transaction No. | IC Transaction No. | Normal | Integer | 4 | IC Transaction No_ | int |
127 | Transaction Source | Transaction Source | Normal | Option | 4 | Transaction Source | int |
Available options are:
| |||||||
128 | Item Ref. | Item Ref. | Normal | Option | 4 | Item Ref_ | int |
Available options are:
| |||||||
138 | IC Item Reference No. | IC Item Reference No. | Normal | Code | 50 | IC Item Reference No_ | nvarchar(100) |
5407 | Unit of Measure Code | Unit of Measure Code | Normal | Code | 10 | Unit of Measure Code | nvarchar(20) |
5790 | Requested Receipt Date | Requested Receipt Date | Normal | Date | 4 | Requested Receipt Date | datetime |
5791 | Promised Receipt Date | Promised Receipt Date | Normal | Date | 4 | Promised Receipt Date | datetime |
6600 | Return Shipment No. | Return Shipment No. | Normal | Code | 20 | Return Shipment No_ | nvarchar(40) |
6601 | Return Shipment Line No. | Return Shipment Line No. | Normal | Integer | 4 | Return Shipment Line No_ | int |
2000000000 | $systemId | System ID | Normal | GUID | 16 | $systemId | uniqueidentifier |
2000000001 | SystemCreatedAt | Created At | Normal | DateTime | 8 | $systemCreatedAt | datetime |
2000000002 | SystemCreatedBy | Created By | Normal | GUID | 16 | $systemCreatedBy | uniqueidentifier |
Key to join to the User table.Show/hide example querySELECT [IC Inbox Purchase Line].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$IC Inbox Purchase Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [IC Inbox Purchase Line] LEFT JOIN [User] AS [User] ON [IC Inbox Purchase Line].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |