GP Customer

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

Table Type: Company

Table Name: GP Customer
Database Table Name:

Table Number: 4093

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 GP Customer 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 [GP Customer]
LEFT JOIN
   [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer]
      ON
         [GP Customer].[CUSTNMBR] = [Customer].[No_]
LEFT JOIN
   [CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code]
      ON
         [GP Customer].[City] = [Post Code].[City]
LEFT JOIN
   [User] AS [User]
      ON
         [GP Customer].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [GP Customer].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in GP Customer table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1CUSTNMBR SearchCustomer NumberNormalText75
Key to join to the Customer table.

Show/hide example query

SELECT
	       [GP Customer].[]
	       ,[Customer].[No_]
	FROM
	       [] AS [GP Customer]
	LEFT JOIN
	       [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer]
	              ON
	                     [GP Customer].[] = [Customer].[No_]
2CUSTNAME Primary Key SearchCustomer NameNormalText65
3STMTNAME SearchNormalText65
4ADDRESS1 SearchAddressNormalText61
5ADDRESS2 SearchAddress 2NormalText61
6CITY SearchCityNormalText35
Key to join to the Post Code table.

Show/hide example query

SELECT
	       [GP Customer].[]
	       ,[Post Code].[City]
	FROM
	       [] AS [GP Customer]
	LEFT JOIN
	       [CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code]
	              ON
	                     [GP Customer].[] = [Post Code].[City]
7CNTCPRSN SearchContactNormalText61
8PHONE1 SearchPhone No.NormalText21
9SALSTERR SearchSales TerritoryNormalText15
10CRLMTAMT SearchCredit Limit AmountNormalDecimal12
11PYMTRMID SearchPayment Terms IDNormalText21
12SLPRSNID SearchSalesperson CodeNormalText15
13SHIPMTHD SearchShipment Method CodeNormalText15
14COUNTRY SearchCountryNormalText61
15AMOUNT SearchAmountNormalDecimal12
16STMTCYCL SearchStatement CycleNormalBoolean4
17FAX SearchFax NumberNormalText30
18ZIPCODE SearchZIP CodeNormalText11
19STATE SearchStateNormalText29
20INET1 SearchInternet Information 1NormalText80
21INET2 SearchInternet Information 2NormalText80
22TAXSCHID SearchTax Schedule IDNormalText15
23UPSZONE SearchUPS ZoneNormalText3
24TAXEXMT1 SearchTax Exempt 1NormalText25
2000000000$systemId SearchSystem IDNormalGUID16
2000000001SystemCreatedAt SearchCreated AtNormalDateTime8
2000000002SystemCreatedBy SearchCreated ByNormalGUID16
Key to join to the User table.

Show/hide example query

SELECT
	       [GP Customer].[]
	       ,[User].[User Security ID]
	FROM
	       [] AS [GP Customer]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [GP Customer].[] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8
2000000004SystemModifiedBy SearchModified ByNormalGUID16

Leave a Reply

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