---
id: object/table/5716
type: object
title: Table 5716 "Substitution Condition"
summary: Table 5716 "Substitution Condition" in Base Application (Microsoft.Inventory.Item.Substitution). 8 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: b313293c25e1f5680d9d9e8eb511e5ceb8577fd1c3f7556d183233d3e4e5c2fa
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Inventory/Item/Substitution/SubstitutionCondition.Table.al
    title: src/Layers/W1/BaseApp/Inventory/Item/Substitution/SubstitutionCondition.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/inventory-how-register-new-items
    - https://learn.microsoft.com/dynamics365/business-central/inventory-item-variants
  objects: []
  features: []
  topics:
    - topic/business-central/business-functionality/inventory
    - topic/business-central/business-functionality/set-up-business-central/set-up-inventory
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 5716
name: Substitution Condition
namespace: Microsoft.Inventory.Item.Substitution
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: 8
  procedures: 0
  events: 0
  subscribers: 0
relations:
  out: 4
  referenced_by: 1
  pages: 2
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 5716 "Substitution Condition"

> Table 5716 "Substitution Condition" in Base Application (Microsoft.Inventory.Item.Substitution). 8 fields. Present since at least BC23, still in BC30, changed in BC24, BC28.

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

Learn documents this table through its pages: [Page 5717 "Condition Entry"](../page/5717.md) (2 Learn pages), [Page 5719 "Sub. Conditions"](../page/5719.md) (2).

## Properties

| Property | Value |
|---|---|
| Caption | Substitution Condition |
| 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 | No. | Code[20] | — | TableRelation [Table 5715 "Item Substitution"](../table/5715.md) ("Item Substitution"."No." where("No." = field("No."))) |
| 2 | Variant Code | Code[10] | — | TableRelation [Table 5715 "Item Substitution"](../table/5715.md) ("Item Substitution"."Variant Code" where("No." = field("No."), "Variant Code" = field("Variant Code"))) |
| 3 | Substitute No. | Code[20] | — | TableRelation [Table 5715 "Item Substitution"](../table/5715.md) ("Item Substitution"."Substitute No." where("No." = field("No."), "Variant Code" = field("Variant Code"), "Substitute No." = field("Substitute No."))) |
| 4 | Substitute Variant Code | Code[10] | — | TableRelation [Table 5715 "Item Substitution"](../table/5715.md) ("Item Substitution"."Substitute Variant Code" where("No." = field("No."), "Variant Code" = field("Variant Code"), "Substitute No." = field("Substitute No."), "Substitute Variant Code" = field("Substitute Variant Code"))) |
| 5 | Line No. | Integer | — |  |
| 6 | Condition | Text[80] | Specifies the condition for item substitution. |  |
| 100 | Type | Enum "Item Substitution Type" | — | enum [Enum 102 "Item Substitution Type"](../enum/102.md) |
| 101 | Substitute Type | Enum "Item Substitute Type" | — | enum [Enum 101 "Item Substitute Type"](../enum/101.md) |

## Keys

- Key1: Type, No., Variant Code, Substitute Type, Substitute No., Substitute Variant Code, Line No. (clustered)

## Relations

- No.: TableRelation [Table 5715 "Item Substitution"](../table/5715.md)
- Substitute No.: TableRelation [Table 5715 "Item Substitution"](../table/5715.md)
- Substitute Variant Code: TableRelation [Table 5715 "Item Substitution"](../table/5715.md)
- Variant Code: TableRelation [Table 5715 "Item Substitution"](../table/5715.md)

## Referenced by

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

- [Table 5715 "Item Substitution"](../table/5715.md): Condition

## Pages and codeunits on this table

- [Page 5717 "Condition Entry"](../page/5717.md) (source table)
- [Page 5719 "Sub. Conditions"](../page/5719.md) (source table)

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