---
id: object/codeunit/361
type: object
title: Codeunit 361 "MoveEntries"
summary: Codeunit 361 "MoveEntries" in Base Application (Microsoft.Utilities). 9 public procedures, 23 events. Present since at least BC23, still in BC30, changed in BC24-25, BC28.
tier: official
language: en
tags:
  - codeunit
  - 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: b64caf1f524893099527f96405985ca0848494bc615a2cf12420377f676c3280
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Utilities/MoveEntries.Codeunit.al
    title: src/Layers/W1/BaseApp/Utilities/MoveEntries.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/ru
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 361
name: MoveEntries
namespace: Microsoft.Utilities
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "25"
  - "28"
source_major: "29"
obsolete: null
countries:
  - ru
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 35
  events: 23
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 6
  calls: 4
  called_by: 14
  implements: 0
---

# Codeunit 361 "MoveEntries"

> Codeunit 361 "MoveEntries" in Base Application (Microsoft.Utilities). 9 public procedures, 23 events. Present since at least BC23, still in BC30, changed in BC24-25, BC28.

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

## Properties

| Property | Value |
|---|---|
| Permissions | TableData "G/L Entry" = rm, TableData "Cust. Ledger Entry" = rm, tabledata "Detailed Cust. Ledg. Entry" = rm, TableData "Vendor Ledger Entry" = rm, tabledata "Detailed Vendor Ledg. Entry" = rm, TableData "Item Ledger Entry" = rm, TableData "Job Ledger Entry" = rm, TableData "Res. Ledger Entry" = rm,... |

## Events published

- `OnAfterMoveGLEntries(GLAccount: Record "G/L Account"; var GLEntry: Record "G/L Entry")` (integration)
- `OnAfterMoveBankAccEntries(BankAccount: Record "Bank Account"; var BankAccountLedgerEntry: Record "Bank Account Ledger Entry"; var CheckLedgerEntry: Record "Check Ledger Entry")` (integration)
- `OnAfterMoveCashFlowEntries(CashFlowAccount: Record "Cash Flow Account"; CashFlowSetup: Record "Cash Flow Setup")` (integration)
  - subscribers: [Codeunit 6492 "Serv. Move Entries"](../codeunit/6492.md) OnAfterMoveCashFlowEntries
- `OnAfterMoveDocRelatedEntries(TableNo: Integer; DocNo: Code[20])` (integration)
- `OnBeforeCheckGLAccountEntries(var GLEntry: Record "G/L Entry"; var GLSetup: Record "General Ledger Setup"; var GLAccount: Record "G/L Account"; var IsHandled: Boolean)` (integration)
- `OnBeforeSetCustLedgEntryFilterByAccPeriod(var CustLedgEntry: Record "Cust. Ledger Entry"; var IsHandled: Boolean)` (integration)
- `OnBeforeSetVendLedgEntryFilterByAccPeriod(var VendLedgEntry: Record "Vendor Ledger Entry"; var IsHandled: Boolean)` (integration)
- `OnBeforeMoveGLEntries(GLAccount: Record "G/L Account"; var GLAccNo: Code[20]; var GLEntry: Record "G/L Entry")` (integration)
- `OnBeforeMoveCustEntries(Customer: Record Customer; var NewCustNo: Code[20])` (integration)
- `OnBeforeMoveVendEntries(Vendor: Record Vendor; var NewVendNo: Code[20])` (integration)
- `OnBeforeMoveBankAccEntries(BankAccount: Record "Bank Account"; var NewBankAccNo: Code[20])` (integration)
- `OnBeforeMoveItemEntries(Item: Record Item; var NewItemNo: Code[20])` (integration)
- `OnBeforeMoveResEntries(Resource: Record Resource; var NewResNo: Code[20])` (integration)
- `OnBeforeMoveJobEntries(Job: Record Job; var NewJobNo: Code[20])` (integration)
- `OnBeforeMoveCashFlowEntries(CashFlowAccount: Record "Cash Flow Account"; var NewAccountNo: Code[20])` (integration)
- `OnBeforeMoveDocRelatedEntries(TableNo: Integer; DocNo: Code[20])` (integration)
- `OnMoveItemEntriesOnBeforeCheckForOpenEtries(var ItemLedgerEntry: Record "Item Ledger Entry")` (integration)
- `OnMoveCustEntriesOnBeforeError(var Cust: Record Customer)` (integration)
- `OnMoveCustEntriesOnAfterModifyCustLedgEntries(var Customer: Record Customer; NewCustNo: Code[20])` (integration)
  - subscribers: [Codeunit 6492 "Serv. Move Entries"](../codeunit/6492.md) OnMoveCustEntriesOnAfterModifyCustLedgEntries
- `OnMoveVendEntriesOnAfterModifyVendLedgEntries(var Vendor: Record Vendor; NewVendNo: Code[20])` (integration)
  - subscribers: [Codeunit 6492 "Serv. Move Entries"](../codeunit/6492.md) OnMoveVendEntriesOnAfterModifyVendLedgEntries
- `OnMoveItemEntriesOnAfterModifyItemLedgerEntries(var Item: Record Item; NewItemNo: Code[20])` (integration)
  - subscribers: [Codeunit 6492 "Serv. Move Entries"](../codeunit/6492.md) OnMoveItemEntriesOnAfterModifyItemLedgerEntries
- `OnMoveResEntriesOnAfterModifyResLedgerEntries(var Resource: Record Resource; NewResNo: Code[20])` (integration)
  - subscribers: [Codeunit 6492 "Serv. Move Entries"](../codeunit/6492.md) OnMoveResEntriesOnAfterModifyResLedgerEntries
- `OnMoveJobEntriesOnAfterModifyJobLedgerEntries(var Job: Record Job; NewJobNo: Code[20])` (integration)
  - subscribers: [Codeunit 6492 "Serv. Move Entries"](../codeunit/6492.md) OnMoveJobEntriesOnAfterModifyJobLedgerEntries

## Procedures

- `MoveGLEntries(GLAcc: Record "G/L Account")`
- `MoveCustEntries(Cust: Record Customer)`
- `MoveVendorEntries(Vend: Record Vendor)`
- `MoveBankAccEntries(BankAcc: Record "Bank Account")`
- `MoveItemEntries(Item: Record Item)`
- `MoveResEntries(Res: Record Resource)`
- `MoveJobEntries(Job: Record Job)`
- `MoveCashFlowEntries(CashFlowAccount: Record "Cash Flow Account")`
- `MoveDocRelatedEntries(TableNo: Integer; DocNo: Code[20])`

Plus 3 local procedures.

## Triggers

OnRun

## 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 5849 "Avg. Cost Entry Point Handler"](../codeunit/5849.md) (2 calls: `MoveItemEntries → DeleteBuffer`, `MoveItemEntries → IsEntriesAdjusted`)
- [Codeunit 100 "Calc. G/L Acc. Where-Used"](../codeunit/100.md) (1 call: `MoveGLEntries → DeleteGLNo`)
- [Codeunit 27 "Confirm Management"](../codeunit/27.md) (1 call: `CheckGLAccountEntries → GetResponseOrDefault`)
- [Codeunit 5836 "Cost Calculation Management"](../codeunit/5836.md) (1 call: `MoveDocRelatedEntries → GetDocType`)

## Called by

- [Codeunit 363 "PostSales-Delete"](../codeunit/363.md) (4 calls: `DeleteSalesCrMemoLines → MoveDocRelatedEntries`, `DeleteSalesInvLines → MoveDocRelatedEntries`, `DeleteSalesRcptLines → MoveDocRelatedEntries`, …)
- [Codeunit 364 "PostPurch-Delete"](../codeunit/364.md) (4 calls: `DeletePurchCrMemoLines → MoveDocRelatedEntries`, `DeletePurchInvLines → MoveDocRelatedEntries`, `DeletePurchRcptLines → MoveDocRelatedEntries`, …)
- [Codeunit 902 "PostedAssemblyLines-Delete"](../codeunit/902.md) (1 call: `DeleteLines → MoveDocRelatedEntries`)
- [Table 15 "G/L Account"](../table/15.md) (1 call: `OnDelete → MoveGLEntries`)
- [Table 156 "Resource"](../table/156.md) (1 call: `OnDelete → MoveResEntries`)
- [Table 167 "Job"](../table/167.md) (1 call: `OnDelete → MoveJobEntries`)
- [Table 18 "Customer"](../table/18.md) (1 call: `OnDelete → MoveCustEntries`)
- [Table 23 "Vendor"](../table/23.md) (1 call: `OnDelete → MoveVendorEntries`)
- [Table 27 "Item"](../table/27.md) (1 call: `OnDelete → MoveItemEntries`)
- [Table 270 "Bank Account"](../table/270.md) (1 call: `OnDelete → MoveBankAccEntries`)
- [Table 5744 "Transfer Shipment Header"](../table/5744.md) (1 call: `OnDelete → MoveDocRelatedEntries`)
- [Table 5746 "Transfer Receipt Header"](../table/5746.md) (1 call: `OnDelete → MoveDocRelatedEntries`)
- [Table 5856 "Direct Trans. Header"](../table/5856.md) (1 call: `OnDelete → MoveDocRelatedEntries`)
- [Table 841 "Cash Flow Account"](../table/841.md) (1 call: `OnDelete → MoveCashFlowEntries`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24-25, BC28

## Countries that replace it

[RU](../../localizations/ru.md)

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