Hist. Gen. Journal Line

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

Table Type: Company

Table Name: Hist. Gen. Journal Line
Database Table Name:

Table Number: 40901

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 Hist. Gen. Journal Line can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   []

Show/hide an example select of all columns by name

SELECT

FROM
   []

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

SELECT
   *
FROM
   [] AS [Hist. Gen. Journal Line]
LEFT JOIN
   [CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency]
      ON
         [Hist. Gen. Journal Line].[Currency Code] = [Currency].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Sales Header Archive$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header Archive]
      ON
         [Hist. Gen. Journal Line].[Document Type] = [Sales Header Archive].[Document Type]
      AND
         [Hist. Gen. Journal Line].[Document No_] = [Sales Header Archive].[No_]
LEFT JOIN
   [CRONUS UK Ltd_$Sales Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header]
      ON
         [Hist. Gen. Journal Line].[Document Type] = [Sales Header].[Document Type]
      AND
         [Hist. Gen. Journal Line].[Document No_] = [Sales Header].[No_]
LEFT JOIN
   [User] AS [User]
      ON
         [Hist. Gen. Journal Line].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Hist. Gen. Journal Line].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Hist. Gen. Journal Line table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Primary Key SearchPrimary KeyNormalInteger4
2Journal Entry No. Primary Key SearchJournal Entry No.NormalCode35
3Source Type SearchSource TypeNormalOption4
4Account No. SearchAccount No.NormalCode130
Key to join to the G/L Account table.

Show/hide example query

SELECT
	       [Hist. Gen. Journal Line].[]
	       ,[G/L Account].[No_]
	FROM
	       [] AS [Hist. Gen. Journal Line]
	LEFT JOIN
	       [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account]
	              ON
	                     [Hist. Gen. Journal Line].[] = [G/L Account].[No_]
5Sequence No. SearchSequence No.NormalInteger4
6Closed SearchClosedNormalBoolean4
7Audit Code SearchAudit CodeNormalText35
8Year SearchYearNormalInteger4
9Date SearchDateNormalDate4
10Currency Code SearchCurrency CodeNormalCode10
Key to join to the Currency table.

Show/hide example query

SELECT
	       [Hist. Gen. Journal Line].[]
	       ,[Currency].[Code]
	FROM
	       [] AS [Hist. Gen. Journal Line]
	LEFT JOIN
	       [CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency]
	              ON
	                     [Hist. Gen. Journal Line].[] = [Currency].[Code]
11Debit Amount SearchDebit AmountNormalDecimal12
12Orig. Debit Amount SearchOriginating Debit AmountNormalDecimal12
13Credit Amount SearchCredit AmountNormalDecimal12
14Orig. Credit Amount SearchOriginating Credit AmountNormalDecimal12
15Document Type SearchDocument TypeNormalText35
16Orig. Document No. SearchOriginating Document No.NormalText35
17Orig. Trx. Source No. SearchOriginating Trx. Source No.NormalText35
18Source No. SearchSource No.NormalText35
19Source Name SearchSource NameNormalText50
20Reference Desc. SearchReference Desc.NormalText50
21Description SearchDescriptionNormalText50
22User SearchUserNormalText50
23Custom1 SearchCustom 1NormalText50
24Custom2 SearchCustom 2NormalText50
2000000000$systemId SearchSystem IDNormalGUID16
2000000001SystemCreatedAt SearchCreated AtNormalDateTime8
2000000002SystemCreatedBy SearchCreated ByNormalGUID16
Key to join to the User table.

Show/hide example query

SELECT
	       [Hist. Gen. Journal Line].[]
	       ,[User].[User Security ID]
	FROM
	       [] AS [Hist. Gen. Journal Line]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [Hist. Gen. Journal Line].[] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8
2000000004SystemModifiedBy SearchModified ByNormalGUID16

Show/hide tables related from Hist. Gen. Journal Line table

Leave a Reply

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