Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/2117
Table Type: Company
Table Name: O365 Posted Coupon Claim
Database Table Name: CRONUS UK Ltd_$O365 Posted Coupon Claim$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 O365 Posted Coupon Claim can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$O365 Posted Coupon Claim$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Claim ID]
,[Graph Contact ID]
,[Usage]
,[Offer]
,[Terms]
,[Code]
,[Expiration]
,[Discount Value]
,[Discount Type]
,[Created DateTime]
,[Amount Text]
,[Offer Blob]
,[Terms Blob]
,[Sales Invoice No_]
,[Customer Id]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$O365 Posted Coupon Claim$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$O365 Posted Coupon Claim$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [O365 Posted Coupon Claim]
LEFT JOIN
[CRONUS UK Ltd_$O365 Coupon Claim$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [O365 Coupon Claim]
ON
[O365 Posted Coupon Claim].[Claim ID] = [O365 Coupon Claim].[Claim ID]
LEFT JOIN
[CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer]
ON
[O365 Posted Coupon Claim].[Customer Id] = [Customer].[$systemId]
LEFT JOIN
[User] AS [User]
ON
[O365 Posted Coupon Claim].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[O365 Posted Coupon Claim].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in O365 Posted Coupon Claim table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Claim ID | Claim ID | Normal | Text | 150 | Claim ID | nvarchar(300) |
Key to join to the O365 Coupon Claim table.Show/hide example querySELECT [O365 Posted Coupon Claim].[Claim ID] ,[O365 Coupon Claim].[Claim ID] FROM [CRONUS UK Ltd_$O365 Posted Coupon Claim$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [O365 Posted Coupon Claim] LEFT JOIN [CRONUS UK Ltd_$O365 Coupon Claim$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [O365 Coupon Claim] ON [O365 Posted Coupon Claim].[Claim ID] = [O365 Coupon Claim].[Claim ID] | |||||||
2 | Graph Contact ID | Graph Contact ID | Normal | Text | 250 | Graph Contact ID | nvarchar(500) |
3 | Usage | Usage | Normal | Option | 4 | Usage | int |
Available options are:
| |||||||
4 | Offer | Offer | Normal | Text | 250 | Offer | nvarchar(500) |
5 | Terms | Terms | Normal | Text | 250 | Terms | nvarchar(500) |
6 | Code | Code | Normal | Text | 30 | Code | nvarchar(60) |
7 | Expiration | Expiration | Normal | Date | 4 | Expiration | datetime |
8 | Discount Value | Discount Value | Normal | Decimal | 12 | Discount Value | decimal(38,38) |
9 | Discount Type | Discount Type | Normal | Option | 4 | Discount Type | int |
Available options are:
| |||||||
10 | Created DateTime | Created DateTime | Normal | DateTime | 8 | Created DateTime | datetime |
13 | Amount Text | Discount | Normal | Text | 30 | Amount Text | nvarchar(60) |
17 | Offer Blob | Offer Blob | Normal | BLOB | 8 | Offer Blob | image |
18 | Terms Blob | Terms Blob | Normal | BLOB | 8 | Terms Blob | image |
19 | Sales Invoice No. | Sales Invoice No. | Normal | Code | 20 | Sales Invoice No_ | nvarchar(40) |
Key to join to the Sales Invoice Header table.Show/hide example querySELECT [O365 Posted Coupon Claim].[Sales Invoice No_] ,[Sales Invoice Header].[No_] FROM [CRONUS UK Ltd_$O365 Posted Coupon Claim$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [O365 Posted Coupon Claim] LEFT JOIN [CRONUS UK Ltd_$Sales Invoice Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Invoice Header] ON [O365 Posted Coupon Claim].[Sales Invoice No_] = [Sales Invoice Header].[No_] | |||||||
8002 | Customer Id | Customer Id | Normal | GUID | 16 | Customer Id | uniqueidentifier |
Key to join to the Customer table.Show/hide example querySELECT [O365 Posted Coupon Claim].[Customer Id] ,[Customer].[$systemId] FROM [CRONUS UK Ltd_$O365 Posted Coupon Claim$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [O365 Posted Coupon Claim] LEFT JOIN [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer] ON [O365 Posted Coupon Claim].[Customer Id] = [Customer].[$systemId] | |||||||
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 [O365 Posted Coupon Claim].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$O365 Posted Coupon Claim$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [O365 Posted Coupon Claim] LEFT JOIN [User] AS [User] ON [O365 Posted Coupon Claim].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |