---
id: object/page/8002
type: object
title: Page 8002 "Extend Contract"
summary: Page 8002 "Extend Contract" in Subscription Billing (Microsoft.SubscriptionBilling). 2 public procedures, 3 events. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - page
  - 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: 3074ce2bc3a8e4df4e418a7eb0f8134bcef3c03d74576d496300f97a74325a18
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Subscription%20Billing/app/Customer%20Contracts/Pages/ExtendContract.Page.al
    title: src/Apps/W1/Subscription Billing/app/Customer Contracts/Pages/ExtendContract.Page.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: page
object_id: 8002
name: Extend Contract
caption: Extend Subscription Contract
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: 0
  procedures: 31
  events: 3
  subscribers: 0
  controls: 18
  actions: 1
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Page 8002 "Extend Contract"

> Page 8002 "Extend Contract" in Subscription Billing (Microsoft.SubscriptionBilling). 2 public procedures, 3 events. Introduced in BC29, still in BC30.

Subscription Billing · Microsoft.SubscriptionBilling · captioned "Extend Subscription Contract" · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Subscription%20Billing/app/Customer%20Contracts/Pages/ExtendContract.Page.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Extend Subscription Contract |
| PageType | Card |
| UsageCategory | Tasks |
| ApplicationArea | All |

## Fields on this page

Layout controls in source order, grouped by the container they sit in. Shows: the table field a control is bound to (or its expression as written); ToolTip: the control's own, else the bound field's (marked).

| Group | Control | Shows | ToolTip |
|---|---|---|---|
| Vendor | Extend Vendor Subscription Contract | `ExtendVendorContract` | Specifies whether Vendor Subscription Contract should be extended with provided Subscription Line. |
|  | Usage Data Supplier No. | `UsageDataSupplierNo` | Specifies the usage data supplier based on which a subscription can be selected. |
|  | Subscription | `SubscriptionDescription` | Specifies the subscription for which the Subscription and Subscription Lines are created. |
|  | Vendor Subscription Contract No. | `VendorContractNo` | Specifies the Vendor Subscription Contract that will be extended. |
|  | Buy-from Vendor Name | `VendorContract."Buy-from Vendor Name"` | Specifies to which vendor the selected Vendor Subscription Contract is created. |
| Customer | Extend Customer Subscription Contract | `ExtendCustomerContract` | Specifies whether Customer Subscription Contract should be extended with provided Subscription Line. |
|  | Customer Name | `CustomerContract."Sell-to Customer Name"` | Specifies the customer to whom the Customer Subscription Contract to be extended is created. |
|  | Customer Subscription Contract No. | `CustomerContractNo` | Specifies the Customer Subscription Contract to be extended. |
|  | Sell-to Customer Name | `CustomerContract."Sell-to Customer Name"` | Specifies the customer to whom the Customer Subscription Contract to be extended is created. |
|  | Contract Type | `CustomerContract."Contract Type"` | Specifies the Subscription Contract Type of the selected Customer Subscription Contract. |
| Item | Item No. | `ItemNo` | Specifies the item number for the Subscription Line to be created. |
|  | Description | `ItemDescription` | Specifies the item description for the Subscription Item to be created. |
|  | Variant Code | `VariantCode` | Specifies the variant of the item. |
|  | Additional Subscription Lines | `StrSubstNo(NoOfSelectedPackagesLbl, SelectedServiceCommitmentPackages, TotalServiceCommitmentPackage)` | Specifies if Subscription Lines (in addition to those marked as "Default") have been selected. AssistEdit allows the selection of additional Subscription Lines. |
|  | Quantity | `QuantityDecimal` | Specifies the quantity for the Subscription Item to be created. |
|  | Unit Cost (LCY) | `UnitCostLCY` | Specifies the cost price in customer currency for the selected item. |
|  | Unit Price | `UnitPrice` | Specifies the sales price for the selected item. |
|  | Provision Start Date | `ProvisionStartDate` | Specifies the date on which the Subscription Item and Subscription Lines will be provided. |

## Actions

| Group | Action | ToolTip | Runs |
|---|---|---|---|
| Processing | Perform Extension | Performs the creation of a Subscription and the extension of the contracts as specified. |  |

## Events published

- `OnBeforeExtendContract()` (integration)
- `OnAfterGetAdditionalServiceCommitments(var TempServiceCommitmentPackage: Record "Subscription Package" temporary; ItemNo: Code[20])` (integration)
- `OnAfterValidateItemNo(ItemNo: Code[20])` (integration)

## Procedures

- `SetParameters(NewCustomerNo: Code[20]; NewCustomerContractNo: Code[20]; NewProvisionStartDate: Date; NewExtendCustomerContract: Boolean)` (internal)
- `SetUsageBasedParameters(SupplierNo: Code[20]; NewSubscriptionEntryNo: Integer)` (internal)

Plus 26 local procedures.

## Triggers

OnOpenPage, OnQueryClosePage

## 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: "page", object_name: "Extend Contract")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
