Sales Cycle Stage

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

Table Type: Company

Table Name: Sales Cycle Stage
Database Table Name: CRONUS UK Ltd_$Sales Cycle Stage$437dbf0e-84ff-417a-965d-ed2bb9650972

Table Number: 5091

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 Sales Cycle Stage can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [CRONUS UK Ltd_$Sales Cycle Stage$437dbf0e-84ff-417a-965d-ed2bb9650972]

Show/hide an example select of all columns by name

SELECT
   [Sales Cycle Code]
   ,[Stage]
   ,[Description]
   ,[Completed _]
   ,[Activity Code]
   ,[Quote Required]
   ,[Allow Skip]
   ,[Date Formula]
   ,[Chances of Success _]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$Sales Cycle Stage$437dbf0e-84ff-417a-965d-ed2bb9650972]

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

SELECT
   *
FROM
   [CRONUS UK Ltd_$Sales Cycle Stage$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Cycle Stage]
LEFT JOIN
   [CRONUS UK Ltd_$Sales Cycle$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Cycle]
      ON
         [Sales Cycle Stage].[Sales Cycle Code] = [Sales Cycle].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Activity$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Activity]
      ON
         [Sales Cycle Stage].[Activity Code] = [Activity].[Code]
LEFT JOIN
   [User] AS [User]
      ON
         [Sales Cycle Stage].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Sales Cycle Stage].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Sales Cycle Stage table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Sales Cycle Code SearchSales Cycle CodeNormalCode10Sales Cycle Codenvarchar(20)
Key to join to the Sales Cycle table.

Show/hide example query

SELECT
	       [Sales Cycle Stage].[Sales Cycle Code]
	       ,[Sales Cycle].[Code]
	FROM
	       [CRONUS UK Ltd_$Sales Cycle Stage$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Cycle Stage]
	LEFT JOIN
	       [CRONUS UK Ltd_$Sales Cycle$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Cycle]
	              ON
	                     [Sales Cycle Stage].[Sales Cycle Code] = [Sales Cycle].[Code]
2Stage Primary Key SearchStageNormalInteger4Stageint
3Description Primary Key SearchDescriptionNormalText100Descriptionnvarchar(200)
4Completed % SearchCompleted %NormalDecimal12Completed _decimal(38,38)
5Activity Code SearchActivity CodeNormalCode10Activity Codenvarchar(20)
Key to join to the Activity table.

Show/hide example query

SELECT
	       [Sales Cycle Stage].[Activity Code]
	       ,[Activity].[Code]
	FROM
	       [CRONUS UK Ltd_$Sales Cycle Stage$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Cycle Stage]
	LEFT JOIN
	       [CRONUS UK Ltd_$Activity$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Activity]
	              ON
	                     [Sales Cycle Stage].[Activity Code] = [Activity].[Code]
6Quote Required SearchQuote RequiredNormalBoolean4Quote Requiredtinyint
7Allow Skip SearchAllow SkipNormalBoolean4Allow Skiptinyint
8Comment SearchCommentFlowFieldBoolean4
9No. of Opportunities SearchNo. of OpportunitiesFlowFieldInteger4
10Estimated Value (LCY) SearchEstimated Value ($)FlowFieldDecimal12
11Calcd. Current Value (LCY) SearchCalcd. Current Value ($)FlowFieldDecimal12
12Average No. of Days SearchAverage No. of DaysFlowFieldDecimal12
13Date Filter SearchDate FilterFlowFilterDate4
14Date Formula SearchDate FormulaNormalDateFormula32Date Formulavarchar(32)
15Chances of Success % SearchChances of Success %NormalDecimal12Chances of Success _decimal(38,38)
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
	       [Sales Cycle Stage].[$systemCreatedBy]
	       ,[User].[User Security ID]
	FROM
	       [CRONUS UK Ltd_$Sales Cycle Stage$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Cycle Stage]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [Sales Cycle Stage].[$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 *