MS-QBO Invoice

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

Table Type: Company

Table Name: MS-QBO Invoice
Database Table Name: CRONUS UK Ltd_$MS-QBO Invoice$437dbf0e-84ff-417a-965d-ed2bb9650972

Table Number: 7822

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 MS-QBO Invoice can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [CRONUS UK Ltd_$MS-QBO Invoice$437dbf0e-84ff-417a-965d-ed2bb9650972]

Show/hide an example select of all columns by name

SELECT
   [Id]
   ,[SyncToken]
   ,[MetaData]
   ,[MetaData CreateTime]
   ,[MetaData LastUpdatedTime]
   ,[CustomField]
   ,[DocNumber]
   ,[TxnDate]
   ,[DepartmentRef]
   ,[CurrencyRef]
   ,[ExchangeRate]
   ,[PrivateNote]
   ,[LinkedTxn]
   ,[Line]
   ,[TxnTaxDetail]
   ,[CustomerRef]
   ,[CustomerMemo]
   ,[BillAddr]
   ,[ShipAddr]
   ,[ClassRef]
   ,[SalesTermRef]
   ,[DueDate]
   ,[GlobalTaxCalculation]
   ,[ShipMethodRef]
   ,[ShipDate]
   ,[TrackingNum]
   ,[TotalAmt]
   ,[HomeTotalAmt]
   ,[ApplyTaxAfterDiscount]
   ,[PrintStatus]
   ,[EmailStatus]
   ,[BillEmail]
   ,[DeliveryInfo]
   ,[Balance]
   ,[HomeBalance]
   ,[TxnSource]
   ,[Deposit]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$MS-QBO Invoice$437dbf0e-84ff-417a-965d-ed2bb9650972]

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

SELECT
   *
FROM
   [CRONUS UK Ltd_$MS-QBO Invoice$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [MS-QBO Invoice]
LEFT JOIN
   [User] AS [User]
      ON
         [MS-QBO Invoice].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [MS-QBO Invoice].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in MS-QBO Invoice table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Id SearchIdNormalText250Idnvarchar(500)
2SyncToken Primary Key SearchSyncTokenNormalText250SyncTokennvarchar(500)
3MetaData SearchMetaDataNormalBLOB8MetaDataimage
4MetaData CreateTime SearchMetaData CreateTimeNormalDateTime8MetaData CreateTimedatetime
5MetaData LastUpdatedTime SearchMetaData LastUpdatedTimeNormalDateTime8MetaData LastUpdatedTimedatetime
6CustomField SearchCustomFieldNormalBLOB8CustomFieldimage
7DocNumber SearchDocNumberNormalText21DocNumbernvarchar(42)
8TxnDate SearchTxnDateNormalDate4TxnDatedatetime
9DepartmentRef SearchDepartmentRefNormalBLOB8DepartmentRefimage
10CurrencyRef SearchCurrencyRefNormalBLOB8CurrencyRefimage
11ExchangeRate SearchExchangeRateNormalDecimal12ExchangeRatedecimal(38,38)
12PrivateNote SearchPrivateNoteNormalBLOB8PrivateNoteimage
13LinkedTxn SearchLinkedTxnNormalBLOB8LinkedTxnimage
14Line SearchLineNormalBLOB8Lineimage
15TxnTaxDetail SearchTxnTaxDetailNormalBLOB8TxnTaxDetailimage
16CustomerRef SearchCustomerRefNormalBLOB8CustomerRefimage
17CustomerMemo SearchCustomerMemoNormalBLOB8CustomerMemoimage
18BillAddr SearchBillAddrNormalBLOB8BillAddrimage
19ShipAddr SearchShipAddrNormalBLOB8ShipAddrimage
20ClassRef SearchClassRefNormalBLOB8ClassRefimage
21SalesTermRef SearchSalesTermRefNormalBLOB8SalesTermRefimage
22DueDate SearchDueDateNormalDate4DueDatedatetime
23GlobalTaxCalculation SearchGlobalTaxCalculationNormalBLOB8GlobalTaxCalculationimage
24ShipMethodRef SearchShipMethodRefNormalBLOB8ShipMethodRefimage
25ShipDate SearchShipDateNormalDate4ShipDatedatetime
26TrackingNum SearchTrackingNumNormalText250TrackingNumnvarchar(500)
27TotalAmt SearchTotalAmtNormalDecimal12TotalAmtdecimal(38,38)
28HomeTotalAmt SearchHomeTotalAmtNormalDecimal12HomeTotalAmtdecimal(38,38)
29ApplyTaxAfterDiscount SearchApplyTaxAfterDiscountNormalBoolean4ApplyTaxAfterDiscounttinyint
30PrintStatus SearchPrintStatusNormalText13PrintStatusnvarchar(26)
31EmailStatus SearchEmailStatusNormalText10EmailStatusnvarchar(20)
32BillEmail SearchBillEmailNormalBLOB8BillEmailimage
33DeliveryInfo SearchDeliveryInfoNormalText250DeliveryInfonvarchar(500)
34Balance SearchBalanceNormalDecimal12Balancedecimal(38,38)
35HomeBalance SearchHomeBalanceNormalDecimal12HomeBalancedecimal(38,38)
36TxnSource SearchTxnSourceNormalText250TxnSourcenvarchar(500)
37Deposit SearchDepositNormalText30Depositnvarchar(60)
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
	       [MS-QBO Invoice].[$systemCreatedBy]
	       ,[User].[User Security ID]
	FROM
	       [CRONUS UK Ltd_$MS-QBO Invoice$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [MS-QBO Invoice]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [MS-QBO Invoice].[$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 *