Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/1600
Table Type: Company
Table Name: Office Add-in Context
Database Table Name: CRONUS UK Ltd_$Office Add-in Context$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 Office Add-in Context can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Office Add-in Context$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Email]
,[Name]
,[Document Type]
,[Document No_]
,[Regular Expression Match]
,[Duration]
,[Command]
,[Item ID]
,[Version]
,[Contact No_]
,[Subject]
,[Item Type]
,[Mode]
,[Company]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Office Add-in Context$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Office Add-in Context$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Office Add-in Context]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header]
ON
[Office Add-in Context].[Document Type] = [Sales Header].[Document Type]
AND
[Office Add-in Context].[Document No_] = [Sales Header].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header Archive$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header Archive]
ON
[Office Add-in Context].[Document Type] = [Sales Header Archive].[Document Type]
AND
[Office Add-in Context].[Document No_] = [Sales Header Archive].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Item$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Item]
ON
[Office Add-in Context].[Item Id] = [Item].[$systemId]
LEFT JOIN
[CRONUS UK Ltd_$Guided Experience Item$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Guided Experience Item]
ON
[Office Add-in Context].[Version] = [Guided Experience Item].[Version]
LEFT JOIN
[Company] AS [Company]
ON
[Office Add-in Context].[Company] = [Company].[Name]
LEFT JOIN
[User] AS [User]
ON
[Office Add-in Context].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Office Add-in Context].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Office Add-in Context table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Normal | Text | 80 | nvarchar(160) | |||
2 | Name | Name | Normal | Text | 250 | Name | nvarchar(500) |
3 | Document Type | Document Type | Normal | Text | 20 | Document Type | nvarchar(40) |
4 | Document No. | Document No. | Normal | Code | 250 | Document No_ | nvarchar(500) |
5 | Regular Expression Match | Regular Expression Match | Normal | Text | 250 | Regular Expression Match | nvarchar(500) |
6 | Duration | Duration | Normal | Text | 20 | Duration | nvarchar(40) |
8 | Command | Command | Normal | Text | 30 | Command | nvarchar(60) |
12 | Item ID | Item ID | Normal | Text | 250 | Item ID | nvarchar(500) |
Key to join to the Item table.Show/hide example querySELECT [Office Add-in Context].[Item ID] ,[Item].[$systemId] FROM [CRONUS UK Ltd_$Office Add-in Context$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Office Add-in Context] LEFT JOIN [CRONUS UK Ltd_$Item$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Item] ON [Office Add-in Context].[Item ID] = [Item].[$systemId] | |||||||
13 | Version | Version | Normal | Text | 20 | Version | nvarchar(40) |
Key to join to the Guided Experience Item table.Show/hide example querySELECT [Office Add-in Context].[Version] ,[Guided Experience Item].[Version] FROM [CRONUS UK Ltd_$Office Add-in Context$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Office Add-in Context] LEFT JOIN [CRONUS UK Ltd_$Guided Experience Item$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Guided Experience Item] ON [Office Add-in Context].[Version] = [Guided Experience Item].[Version] | |||||||
14 | Contact No. | Contact No. | Normal | Code | 20 | Contact No_ | nvarchar(40) |
Key to join to the Contact table.Show/hide example querySELECT [Office Add-in Context].[Contact No_] ,[Contact].[No_] FROM [CRONUS UK Ltd_$Office Add-in Context$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Office Add-in Context] LEFT JOIN [CRONUS UK Ltd_$Contact$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Contact] ON [Office Add-in Context].[Contact No_] = [Contact].[No_] | |||||||
15 | Subject | Subject | Normal | Text | 250 | Subject | nvarchar(500) |
16 | Item Type | Item Type | Normal | Option | 4 | Item Type | int |
Available options are:
| |||||||
18 | Mode | Mode | Normal | Option | 4 | Mode | int |
Available options are:
| |||||||
20 | Company | Company | Normal | Text | 50 | Company | nvarchar(100) |
Key to join to the Company table.Show/hide example querySELECT [Office Add-in Context].[Company] ,[Company].[Name] FROM [CRONUS UK Ltd_$Office Add-in Context$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Office Add-in Context] LEFT JOIN [Company] AS [Company] ON [Office Add-in Context].[Company] = [Company].[Name] | |||||||
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 [Office Add-in Context].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Office Add-in Context$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Office Add-in Context] LEFT JOIN [User] AS [User] ON [Office Add-in Context].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |