---
id: object/table/8065
type: object
title: Table 8065 "Vend. Sub. Contract Line"
summary: Table 8065 "Vend. Sub. Contract Line" in Subscription Billing (Microsoft.SubscriptionBilling). 11 fields, 12 public procedures, 1 events. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - table
  - subscription billing
versions:
  introduced: "29"
  last_changed: null
  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: 89ab5bcf8c11ac50cfba9b9fc3e0ad8949906297dcbb1535e7724f41007372c5
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Subscription%20Billing/app/Vendor%20Contracts/Tables/VendSubContractLine.Table.al
    title: src/Apps/W1/Subscription Billing/app/Vendor Contracts/Tables/VendSubContractLine.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/8115
object_type: table
object_id: 8065
name: Vend. Sub. Contract Line
caption: Vendor Subscription Contract Line
namespace: Microsoft.SubscriptionBilling
app: Subscription Billing
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 11
  procedures: 31
  events: 1
  subscribers: 0
relations:
  out: 7
  referenced_by: 12
  pages: 4
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 8065 "Vend. Sub. Contract Line"

> Table 8065 "Vend. Sub. Contract Line" in Subscription Billing (Microsoft.SubscriptionBilling). 11 fields, 12 public procedures, 1 events. Introduced in BC29, still in BC30.

Subscription Billing · Microsoft.SubscriptionBilling · captioned "Vendor Subscription Contract Line" · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Subscription%20Billing/app/Vendor%20Contracts/Tables/VendSubContractLine.Table.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Vendor Subscription Contract Line |
| 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 | Subscription Contract No. | Code[20] | — | TableRelation [Table 8063 "Vendor Subscription Contract"](../table/8063.md) (Vendor Subscription Contract) |
| 2 | Line No. | Integer | — |  |
| 3 | Contract Line Type | Enum "Contract Line Type" | Specifies the contract line type. <small>via [Page 8078 "Vendor Contract Line Subpage"](../page/8078.md)</small> | enum [Enum 8055 "Contract Line Type"](../enum/8055.md) |
| 4 | No. | Code[20] | Specifies the No. of the Item or G/L Account of the Subscription. <small>via [Page 8078 "Vendor Contract Line Subpage"](../page/8078.md)</small> | TableRelation [Table 15 "G/L Account"](../table/15.md), [Table 27 "Item"](../table/27.md) (if ("Contract Line Type" = const(Item)) Item where("Subscription Option" = filter("Sales with Service Commitment" \| "Service Commitment Item"), Blocked = const(false)) else if ("Contract Line Type" = const("G/L Account")) "G/L Account" where("Direct Posting" = const(true), "Account Type" = const(Pos...) |
| 100 | Subscription Header No. | Code[20] | Specifies the number of the Subscription. <small>via [Page 8078 "Vendor Contract Line Subpage"](../page/8078.md)</small> | TableRelation [Table 8057 "Subscription Header"](../table/8057.md) (Subscription Header); not editable |
| 101 | Subscription Line Entry No. | Integer | — | TableRelation [Table 8059 "Subscription Line"](../table/8059.md) ("Subscription Line"."Entry No."); not editable |
| 102 | Subscription Description | Text[100] | Specifies a description of the Subscription. <small>via [Page 8078 "Vendor Contract Line Subpage"](../page/8078.md)</small> |  |
| 106 | Subscription Line Description | Text[100] | Specifies the description of the Subscription Line. <small>via [Page 8078 "Vendor Contract Line Subpage"](../page/8078.md)</small> |  |
| 107 | Closed | Boolean | Specifies that the associated Subscription Line has ended. <small>via [Page 8089 "Closed Vend. Cont. Line Subp."](../page/8089.md)</small> |  |
| 109 | Service Object Quantity | Decimal | Specifies the number of units of Subscription. <small>via [Page 8089 "Closed Vend. Cont. Line Subp."](../page/8089.md)</small> | FlowField: lookup("Subscription Header".Quantity where("No." = field("Subscription Header No."))); not editable |
| 200 | Planned Sub. Line exists | Boolean | Specifies if a planned Renewal exists for the Subscription Line. <small>via [Page 8078 "Vendor Contract Line Subpage"](../page/8078.md)</small> | FlowField: exist("Planned Subscription Line" where("Subscription Header No." = field("Subscription Header No."), "Subscription Contract No." = field("Subscription Contract No."), "Subscription Contract Line No." = field("Line No."))); not editable |

## Keys

- PK: Subscription Contract No., Line No. (clustered)

## Events published

- `OnAfterInitFromSubscriptionLine(var VendSubContractLine: Record "Vend. Sub. Contract Line"; SubscriptionLine: Record "Subscription Line"; SubscriptionHeader: Record "Subscription Header")` (integration)

## Procedures

- `OpenServiceObjectCard()` (internal)
- `GetNextLineNo(VendorContractNo: Code[20]): Integer` (internal)
- `LoadServiceCommitmentForContractLine(var ServiceCommitment: Record "Subscription Line")` (internal)
- `GetServiceCommitment(var ServiceCommitment: Record "Subscription Line"): Boolean` (internal)
- `GetServiceObject(var ServiceObject: Record "Subscription Header"): Boolean` (internal)
- `UpdateServiceCommitmentDimensions()` (internal)
- `FilterOnServiceCommitment(ServiceCommitment: Record "Subscription Line")` (internal)
- `FilterOnServiceObjectContractLineType()` (internal)
- `FindFirstSubscriptionLine(SubscriptionLine: Record "Subscription Line"): Boolean` (internal)
- `MergeContractLines(var VendorContractLine: Record "Vend. Sub. Contract Line")` (internal)
- `InitFromServiceCommitment(ServiceCommitment: Record "Subscription Line"; ContractNo: Code[20])` (internal)
- `IsCommentLine(): Boolean` (internal)

Plus 18 local procedures.

## Triggers

OnDelete, OnModify

## Relations

- No.: TableRelation [Table 15 "G/L Account"](../table/15.md) (conditional)
- No.: TableRelation [Table 27 "Item"](../table/27.md) (conditional)
- Planned Sub. Line exists: CalcFormula [Table 8002 "Planned Subscription Line"](../table/8002.md)
- Service Object Quantity: CalcFormula [Table 8057 "Subscription Header"](../table/8057.md)
- Subscription Header No.: TableRelation [Table 8057 "Subscription Header"](../table/8057.md)
- Subscription Line Entry No.: TableRelation [Table 8059 "Subscription Line"](../table/8059.md)
- Subscription Contract No.: TableRelation [Table 8063 "Vendor Subscription Contract"](../table/8063.md)

## Referenced by

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

- [Table 8001 "Sub. Contract Renewal Line"](../table/8001.md): Subscription Contract Line No.
- [Table 8002 "Planned Subscription Line"](../table/8002.md): Subscription Contract Line No.
- [Table 8006 "Usage Data Billing"](../table/8006.md): Subscription Contract Line No.
- [Table 8009 "Imported Subscription Line"](../table/8009.md): Subscription Contract Line No.
- [Table 8019 "Sub. Contr. Analysis Entry"](../table/8019.md): Subscription Contract Line No.
- [Table 8059 "Subscription Line"](../table/8059.md): Subscription Contract Line No.
- [Table 8061 "Billing Line"](../table/8061.md): Subscription Contract Line No.
- [Table 8064 "Billing Line Archive"](../table/8064.md): Subscription Contract Line No.
- [Table 8072 "Vend. Sub. Contract Deferral"](../table/8072.md): Subscription Contract Line No.
- [Table 8073 "Subscription Line Archive"](../table/8073.md): Subscription Contract Line No.
- [Table extension 8060 "Purch. Inv. Line"](../tableextension/8060.md): Subscription Contract Line No.
- [Table extension 8064 "Purch Cr. Memo Line"](../tableextension/8064.md): Subscription Contract Line No.

## Pages and codeunits on this table

- [Page 8047 "Vendor Contract Lines API"](../page/8047.md) (source table)
- [Page 8078 "Vendor Contract Line Subpage"](../page/8078.md) (source table)
- [Page 8089 "Closed Vend. Cont. Line Subp."](../page/8089.md) (source table)
- [Page 8092 "Select Vend. Contract Lines"](../page/8092.md) (source table)

## Recent changes

- 2026-07-14 [#8115 Subscription Billing: respect Default Dimension Priorities on Subscription Lines](../../changes/bcapps/8115.md) (main, BC30, fix)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

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: "Vend. Sub. Contract Line")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
