---
id: object/table/5365
type: object
title: Table 5365 "CRM Discount"
summary: Table 5365 "CRM Discount" in Base Application (Microsoft.Integration.D365Sales). 27 fields. Present since at least BC23, still in BC30, changed in BC24, BC28.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "28"
  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: 3d5930e5bbfff2ff3be7b4f401459b5642839d83a8ad7ab41648c5b727041c29
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Integration/D365Sales/CRMDiscount.Table.al
    title: src/Layers/W1/BaseApp/Integration/D365Sales/CRMDiscount.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: 5365
name: CRM Discount
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"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 27
  procedures: 0
  events: 0
  subscribers: 0
relations:
  out: 12
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 5365 "CRM Discount"

> Table 5365 "CRM Discount" in Base Application (Microsoft.Integration.D365Sales). 27 fields. Present since at least BC23, still in BC30, changed in BC24, BC28.

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

## Properties

| Property | Value |
|---|---|
| Caption | CRM Discount |
| 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 | DiscountId | Guid | Discount <small>caption</small> |  |
| 2 | DiscountTypeId | Guid | Discount Type <small>caption</small> | TableRelation [Table 5366 "CRM Discounttype"](../table/5366.md) ("CRM Discounttype".DiscountTypeId) |
| 3 | LowQuantity | Decimal | Begin Quantity <small>caption</small> |  |
| 4 | HighQuantity | Decimal | End Quantity <small>caption</small> |  |
| 5 | Percentage | Decimal | — |  |
| 6 | Amount | Decimal | — |  |
| 7 | StatusCode | Option | Status Reason <small>caption</small> | OptionCaption:  |
| 8 | CreatedOn | DateTime | Created On <small>caption</small> |  |
| 9 | CreatedBy | Guid | Created By <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId) |
| 10 | ModifiedBy | Guid | Modified By <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId) |
| 11 | ModifiedOn | DateTime | Modified On <small>caption</small> |  |
| 12 | DiscountTypeIdName | Text[100] | — | FlowField: lookup("CRM Discounttype".Name where(DiscountTypeId = field(DiscountTypeId))) |
| 13 | IsAmountType | Boolean | Amount Type <small>caption</small> |  |
| 14 | CreatedByName | Text[200] | — | FlowField: lookup("CRM Systemuser".FullName where(SystemUserId = field(CreatedBy))) |
| 15 | ModifiedByName | Text[200] | — | FlowField: lookup("CRM Systemuser".FullName where(SystemUserId = field(ModifiedBy))) |
| 16 | VersionNumber | BigInteger | Version Number <small>caption</small> |  |
| 17 | OrganizationId | Guid | Organization <small>caption</small> |  |
| 18 | OverriddenCreatedOn | Date | Record Created On <small>caption</small> |  |
| 19 | TransactionCurrencyId | Guid | Currency <small>caption</small> | TableRelation [Table 5345 "CRM Transactioncurrency"](../table/5345.md) ("CRM Transactioncurrency".TransactionCurrencyId) |
| 20 | ExchangeRate | Decimal | Exchange Rate <small>caption</small> |  |
| 21 | ImportSequenceNumber | Integer | Import Sequence Number <small>caption</small> |  |
| 22 | Amount_Base | Decimal | Amount (Base) <small>caption</small> |  |
| 23 | TransactionCurrencyIdName | Text[100] | — | FlowField: lookup("CRM Transactioncurrency".CurrencyName where(TransactionCurrencyId = field(TransactionCurrencyId))) |
| 24 | CreatedOnBehalfBy | Guid | Created By (Delegate) <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId) |
| 25 | CreatedOnBehalfByName | Text[200] | — | FlowField: lookup("CRM Systemuser".FullName where(SystemUserId = field(CreatedOnBehalfBy))) |
| 26 | ModifiedOnBehalfBy | Guid | Modified By (Delegate) <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId) |
| 27 | ModifiedOnBehalfByName | Text[200] | — | FlowField: lookup("CRM Systemuser".FullName where(SystemUserId = field(ModifiedOnBehalfBy))) |

## Keys

- Key1: DiscountId (clustered)

## 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)
- DiscountTypeIdName: CalcFormula [Table 5366 "CRM Discounttype"](../table/5366.md)
- DiscountTypeId: TableRelation [Table 5366 "CRM Discounttype"](../table/5366.md)

## Across versions

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

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 Discount")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
