---
id: change/bcapps/12766
type: change
title: "#12766 Release Spend Request: declare indirect modify permission on Spend Request"
summary: Release Spend Request codeunit now declares indirect modify permission on Spend Request, allowing the Expense Agent to submit and reject travel requests through proper permission inheritance.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit release spend request
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-16T01:17:10.624Z"
  flags: []
generated:
  at: "2026-10-24T01:02:25.817Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 7b9ee6fc5fff48bd7e22167e55d0bd719212c75f
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12766
    title: "microsoft/BCApps#12766: Release Spend Request: declare indirect modify permission on Spend Request"
    date: "2026-10-13"
    commit: 7b9ee6fc5fff48bd7e22167e55d0bd719212c75f
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/6840
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/ui-define-granular-permissions
      title: Define granular permissions
      label: possibly related
      why: Documents defining granular permissions including indirect modify permissions on objects, directly related to permission declaration.
      by: model
number: 12766
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12766
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-13T21:28:37Z"
author: claudiuciumedean
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 61
  deletions: 0
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/6840
    page: codeunit/6840
    type: codeunit
    id: 6840
    name: Release Spend Request
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 626966
systems:
  - finance
quote: null
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #12766 Release Spend Request: declare indirect modify permission on Spend Request

> Release Spend Request codeunit now declares indirect modify permission on Spend Request, allowing the Expense Agent to submit and reject travel requests through proper permission inheritance.

[Pull request](https://github.com/microsoft/BCApps/pull/12766) · merged into `main` (BC30) on 2026-10-13 by claudiuciumedean · 2 files (+61 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Added permission declaration for indirect modify on Spend Request table to codeunit 6840
- Enables Expense Agent (S2S) to perform writes through the codeunit when direct permission is not granted
- Added two new tests verifying submit and reject operations work with restricted permission set
- Follows same pattern used by Release Sales Document and Release Purchase Document
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 6840 "Release Spend Request"](../../objects/codeunit/6840.md), Base Application: modified

## Context

- Work items: AB#626966
- Labels: AL: Apps (W1), Team: Finance
- Systems: finance

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Define granular permissions](https://learn.microsoft.com/dynamics365/business-central/ui-define-granular-permissions) — possibly related: Documents defining granular permissions including indirect modify permissions on objects, directly related to permission declaration. (model-linked)

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
