---
id: object/table/5366
type: object
title: Table 5366 "CRM Discounttype"
summary: Table 5366 "CRM Discounttype" in Base Application (Microsoft.Integration.D365Sales). 23 fields. Present since at least BC23, still in BC30, changed in BC24.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "24"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 74b8183eb63c73dd6cc7fcf7f76b2110dc815081a389bbcab6743bdc166f3ef4
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Integration/D365Sales/CRMDiscounttype.Table.al
    title: src/Layers/W1/BaseApp/Integration/D365Sales/CRMDiscounttype.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 5366
name: CRM Discounttype
namespace: Microsoft.Integration.D365Sales
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 23
  procedures: 0
  events: 0
  subscribers: 0
relations:
  out: 12
  referenced_by: 4
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 5366 "CRM Discounttype"

> Table 5366 "CRM Discounttype" in Base Application (Microsoft.Integration.D365Sales). 23 fields. Present since at least BC23, still in BC30, changed in BC24.

Base Application · Microsoft.Integration.D365Sales · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Integration/D365Sales/CRMDiscounttype.Table.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | CRM Discounttype |
| TableType | CRM |
| DataClassification | CustomerContent |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | DiscountTypeId | Guid | Discount List <small>caption</small> |  |
| 2 | OrganizationId | Guid | Organization <small>caption</small> | TableRelation [Table 5363 "CRM Organization"](../table/5363.md) ("CRM Organization".OrganizationId) |
| 3 | Name | Text[100] | — |  |
| 4 | Description | BLOB | — |  |
| 5 | IsAmountType | Boolean | Type <small>caption</small> |  |
| 6 | StateCode | Option | Status <small>caption</small> | OptionCaption: Active,Inactive |
| 7 | CreatedOn | DateTime | Created On <small>caption</small> |  |
| 8 | CreatedBy | Guid | Created By <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId) |
| 9 | ModifiedBy | Guid | Modified By <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId) |
| 10 | ModifiedOn | DateTime | Modified On <small>caption</small> |  |
| 11 | VersionNumber | BigInteger | Version Number <small>caption</small> |  |
| 12 | StatusCode | Option | Status Reason <small>caption</small> | OptionCaption: ,Active,Inactive |
| 13 | CreatedByName | Text[200] | — | FlowField: lookup("CRM Systemuser".FullName where(SystemUserId = field(CreatedBy))) |
| 14 | ModifiedByName | Text[200] | — | FlowField: lookup("CRM Systemuser".FullName where(SystemUserId = field(ModifiedBy))) |
| 15 | OrganizationIdName | Text[160] | — | FlowField: lookup("CRM Organization".Name where(OrganizationId = field(OrganizationId))) |
| 16 | OverriddenCreatedOn | Date | Record Created On <small>caption</small> |  |
| 17 | TransactionCurrencyId | Guid | Currency <small>caption</small> | TableRelation [Table 5345 "CRM Transactioncurrency"](../table/5345.md) ("CRM Transactioncurrency".TransactionCurrencyId) |
| 18 | ImportSequenceNumber | Integer | Import Sequence Number <small>caption</small> |  |
| 19 | TransactionCurrencyIdName | Text[100] | — | FlowField: lookup("CRM Transactioncurrency".CurrencyName where(TransactionCurrencyId = field(TransactionCurrencyId))) |
| 20 | CreatedOnBehalfBy | Guid | Created By (Delegate) <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId) |
| 21 | CreatedOnBehalfByName | Text[200] | — | FlowField: lookup("CRM Systemuser".FullName where(SystemUserId = field(CreatedOnBehalfBy))) |
| 22 | ModifiedOnBehalfBy | Guid | Modified By (Delegate) <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId) |
| 23 | ModifiedOnBehalfByName | Text[200] | — | FlowField: lookup("CRM Systemuser".FullName where(SystemUserId = field(ModifiedOnBehalfBy))) |

## Keys

- Key1: DiscountTypeId (clustered)
- Key2: Name

## Relations

- CreatedByName: CalcFormula [Table 5340 "CRM Systemuser"](../table/5340.md)
- CreatedOnBehalfByName: CalcFormula [Table 5340 "CRM Systemuser"](../table/5340.md)
- ModifiedByName: CalcFormula [Table 5340 "CRM Systemuser"](../table/5340.md)
- ModifiedOnBehalfByName: CalcFormula [Table 5340 "CRM Systemuser"](../table/5340.md)
- CreatedBy: TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md)
- CreatedOnBehalfBy: TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md)
- ModifiedBy: TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md)
- ModifiedOnBehalfBy: TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md)
- TransactionCurrencyIdName: CalcFormula [Table 5345 "CRM Transactioncurrency"](../table/5345.md)
- TransactionCurrencyId: TableRelation [Table 5345 "CRM Transactioncurrency"](../table/5345.md)
- OrganizationIdName: CalcFormula [Table 5363 "CRM Organization"](../table/5363.md)
- OrganizationId: TableRelation [Table 5363 "CRM Organization"](../table/5363.md)

## Referenced by

4 fields in 2 objects relate to this table (TableRelation or CalcFormula).

- [Table 5347 "CRM Productpricelevel"](../table/5347.md): DiscountTypeIdName, DiscountTypeId
- [Table 5365 "CRM Discount"](../table/5365.md): DiscountTypeIdName, DiscountTypeId

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "table", object_name: "CRM Discounttype")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
