---
id: object/codeunit/6840
type: object
title: Codeunit 6840 "Release Spend Request"
summary: Codeunit 6840 "Release Spend Request" in Base Application (Microsoft.Finance.SpendRequest). 6 public procedures, 6 events. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - base application
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: 312335bbd732de90e1391ca3eedecefe02f341e07faf10e28ea44cd03c59dca0
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Finance/SpendRequest/ReleaseSpendRequest.Codeunit.al
    title: src/Layers/W1/BaseApp/Finance/SpendRequest/ReleaseSpendRequest.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/9391
object_type: codeunit
object_id: 6840
name: Release Spend Request
namespace: Microsoft.Finance.SpendRequest
app: Base Application
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: 12
  events: 6
  subscribers: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 2
  calls: 1
  called_by: 0
  implements: 0
---

# Codeunit 6840 "Release Spend Request"

> Codeunit 6840 "Release Spend Request" in Base Application (Microsoft.Finance.SpendRequest). 6 public procedures, 6 events. Introduced in BC29, still in BC30.

Base Application · Microsoft.Finance.SpendRequest · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Finance/SpendRequest/ReleaseSpendRequest.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| TableNo | Spend Request |

## Events published

- `OnBeforeRelease(var SpendRequest: Record "Spend Request"; var IsHandled: Boolean)` (integration): Integration event raised before releasing the spend request.
  - subscribers: [Codeunit 6908 "Expense Event Subscriber"](../codeunit/6908.md) OnBeforeReleaseSpendRequest
- `OnAfterRelease(var SpendRequest: Record "Spend Request")` (integration): Integration event raised after releasing the spend request.
  - subscribers: [Codeunit 6908 "Expense Event Subscriber"](../codeunit/6908.md) OnAfterReleaseSpendRequest
- `OnBeforeReopen(var SpendRequest: Record "Spend Request"; var IsHandled: Boolean)` (integration): Integration event raised before reopening the spend request.
- `OnAfterReopen(var SpendRequest: Record "Spend Request")` (integration): Integration event raised after reopening the spend request.
- `OnBeforeClose(var SpendRequest: Record "Spend Request"; var IsHandled: Boolean)` (integration): Integration event raised before closing the spend request.
- `OnAfterClose(var SpendRequest: Record "Spend Request")` (integration): Integration event raised after closing the spend request.

## Procedures

- `Release(var SpendRequest: Record "Spend Request")`: Sets the status of the spend request to Released.
- `Reopen(var SpendRequest: Record "Spend Request")`: Sets the status of the spend request back to Open so it can be edited again.
- `Close(var SpendRequest: Record "Spend Request")`: Sets the status of the spend request to Closed so it cannot be used anymore.
- `PerformManualRelease(var SpendRequest: Record "Spend Request")`: Performs a manual release of the spend request triggered from the UI.
- `PerformManualReopen(var SpendRequest: Record "Spend Request")`: Performs a manual reopen of the spend request triggered from the UI.
- `PerformManualClose(var SpendRequest: Record "Spend Request")`: Performs a manual close of the spend request triggered from the UI.

## Triggers

OnRun

## Relations

- runs on [Table 6840 "Spend Request"](../table/6840.md)

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 27 "Confirm Management"](../codeunit/27.md) (1 call: `Close → GetResponseOrDefault`)

## Recent changes

- 2026-08-10 [#9391 [Master] - Slice 616928: [Expense Management] [App part] Expense Managements Travel Requisitions 💸](../../changes/bcapps/9391.md) (main, BC30, feature, added)

## 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). The call sections above are our own, per object, from the BC29 call graph. 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: "codeunit", object_name: "Release Spend Request")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
