---
id: object/codeunit/703
type: object
title: Codeunit 703 "Find Record Management"
summary: Codeunit 703 "Find Record Management" in Base Application (Microsoft.Utilities). 11 public procedures, 10 events. Present since at least BC23, still in BC30, changed in BC25-27.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "27"
  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: 1eef52bac5f29cf09cdf6590bfa1b7cf78d61a554de4ea47337d65d42edf7e78
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Utilities/FindRecordManagement.Codeunit.al
    title: src/Layers/W1/BaseApp/Utilities/FindRecordManagement.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 703
name: Find Record Management
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:
  - "25"
  - "26"
  - "27"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 28
  events: 10
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 1
  calls: 2
  called_by: 62
  implements: 0
---

# Codeunit 703 "Find Record Management"

> Codeunit 703 "Find Record Management" in Base Application (Microsoft.Utilities). 11 public procedures, 10 events. Present since at least BC23, still in BC30, changed in BC25-27.

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

## Properties

| Property | Value |
|---|---|
| Permissions | tabledata "G/L Entry" = r |

## Events published

- `OnAfterFindRecordByDescriptionAndView(var Result: Text; Type: Option " ","G/L Account",Item,Resource,"Fixed Asset","Charge (Item)",,,,,"Allocation Account"; var RecRef: RecordRef; SearchFieldRef: array[4] of FieldRef; SearchFieldNo: array[4] of Integer; SearchText: Text; var MatchCount: Integer)` (integration)
- `OnAfterGetRecRefAndFieldsNoByType(RecRef: RecordRef; Type: Option " ","G/L Account",Item,Resource,"Fixed Asset","Charge (Item)",,,,,"Allocation Account"; var SearchFieldNo: array[4] of Integer)` (integration)
  - subscribers: [Codeunit 8063 "Sales Documents"](../codeunit/8063.md) FindSubscriptionOnAfterGetRecRefAndFieldsNoByType
- `OnBeforeFindLastEntryIgnoringSecurityFilter(var RecRef: RecordRef; var Found: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeFindNoFromTypedValue(var Type: Option; var Value: Code[20]; var FoundNo: Code[20])` (integration)
- `OnBeforeFindRecordByDescriptionAndView(var Result: Text; Type: Option " ","G/L Account",Item,Resource,"Fixed Asset","Charge (Item)",,,,,"Allocation Account"; var RecRef: RecordRef; SearchFieldRef: array[4] of FieldRef; SearchText: Text; RecordView: Text; var MatchCount: Integer; var IsHandled: Boolean)` (integration)
- `OnBeforeFindRecordContainingSearchString(Type: Option " ","G/L Account",Item,Resource,"Fixed Asset","Charge (Item)",,,,,"Allocation Account"; var RecRef: RecordRef; RecFilterFromStart: Text)` (integration)
- `OnBeforeFindRecordStartingWithSearchString(Type: Option " ","G/L Account",Item,Resource,"Fixed Asset","Charge (Item)",,,,,"Allocation Account"; var RecRef: RecordRef; RecFilterFromStart: Text)` (integration)
- `OnBeforeGetRecRefAndFieldsNoByType(RecRef: RecordRef; Type: Option " ","G/L Account",Item,Resource,"Fixed Asset","Charge (Item)",,,,,"Allocation Account"; var SearchFieldNo: array[4] of Integer)` (integration)
- `OnGetMaxRecordCountToReturnOnBeforeExit(var Result: Integer)` (integration)
- `OnFindRecordByDescriptionAndViewOnBeforeFindRecordWithSimilarName(RecRef: RecordRef; var SearchText: Text; var SearchFieldNo: array[4] of Integer; var IsHandled: Boolean)` (integration)

## Procedures

- `FindLastEntryIgnoringSecurityFilter(var RecRef: RecordRef): Boolean`
- `GetIntFieldValue(RecRef: RecordRef; FieldNo: Integer): Integer`
- `GetIntFieldValues(RecRef: RecordRef; var IntFields: list of [Integer])`
- `GetLastEntryIntFieldValue(SourceRec: Variant; FieldNo: Integer): Integer`
- `GetLastEntryIntFieldValues(SourceRec: Variant; var FieldNoValues: List of [Integer])`
- `FindNoFromTypedValue(Type: Option " ","G/L Account",Item,Resource,"Fixed Asset","Charge (Item)",,,,,"Allocation Account"; Value: Code[20]; UseDefaultTableRelationFilters: Boolean): Code[20]`
- `FindNoByDescription(Type: Option " ","G/L Account",Item,Resource,"Fixed Asset","Charge (Item)",,,,,"Allocation Account"; Description: Text; UseDefaultTableRelationFilters: Boolean): Code[20]`
- `FindRecordByDescription(var Result: Text; Type: Option " ","G/L Account",Item,Resource,"Fixed Asset","Charge (Item)",,,,,"Allocation Account"; SearchText: Text): Integer`
- `FindRecordByDescriptionAndView(var Result: Text; Type: Option " ","G/L Account",Item,Resource,"Fixed Asset","Charge (Item)",,,,,"Allocation Account"; SearchText: Text; RecordView: Text): Integer`
- `GetMaxRecordCountToReturn(): Integer` (internal)
- `FindRecordWithSimilarName(RecRef: RecordRef; SearchText: Text; DescriptionFieldNo: Integer): Boolean`

Plus 7 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 10 "Type Helper"](../codeunit/10.md) (1 call: `FindRecordWithSimilarName → TextDistance`)
- [Codeunit 46 "SelectionFilterManagement"](../codeunit/46.md) (1 call: `UpdateResultFilter → AddQuotes`)

## Called by

- [Table 17 "G/L Entry"](../table/17.md) (2 calls: `GetLastEntry → GetLastEntryIntFieldValues`, `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 27 "Item"](../table/27.md) (2 calls: `PickItem → GetMaxRecordCountToReturn`, `TryGetItemNoOpenCardWithView → FindRecordByDescriptionAndView`)
- [Table 5617 "FA Register"](../table/5617.md) (2 calls: `GetLastEntryNo → GetLastEntryIntFieldValue`, `GetLastGLRegisterNo → GetLastEntryIntFieldValue`)
- [Table 1003 "Job Planning Line"](../table/1003.md) (1 call: `FindOrCreateRecordByNo → FindNoFromTypedValue`)
- [Table 1004 "Job WIP Entry"](../table/1004.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 1005 "Job WIP G/L Entry"](../table/1005.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 1104 "Cost Entry"](../table/1104.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 1109 "Cost Budget Entry"](../table/1109.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 1514 "Sent Notification Entry"](../table/1514.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 169 "Job Ledger Entry"](../table/169.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 1706 "Deferral Posting Buffer"](../table/1706.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 180 "G/L Account Where-Used"](../table/180.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 203 "Res. Ledger Entry"](../table/203.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 21 "Cust. Ledger Entry"](../table/21.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 240 "Resource Register"](../table/240.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 241 "Job Register"](../table/241.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 25 "Vendor Ledger Entry"](../table/25.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 254 "VAT Entry"](../table/254.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 281 "Phys. Inventory Ledger Entry"](../table/281.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 300 "Reminder/Fin. Charge Entry"](../table/300.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 32 "Item Ledger Entry"](../table/32.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 336 "Tracking Specification"](../table/336.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 337 "Reservation Entry"](../table/337.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 338 "Entry Summary"](../table/338.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 339 "Item Application Entry"](../table/339.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 343 "Item Application Entry History"](../table/343.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 37 "Sales Line"](../table/37.md) (1 call: `FindOrCreateRecordByNo → FindNoFromTypedValue`)
- [Table 379 "Detailed Cust. Ledg. Entry"](../table/379.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 380 "Detailed Vendor Ledg. Entry"](../table/380.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 39 "Purchase Line"](../table/39.md) (1 call: `FindOrCreateRecordByNo → FindNoFromTypedValue`)
- [Table 45 "G/L Register"](../table/45.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 454 "Approval Entry"](../table/454.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 455 "Approval Comment Line"](../table/455.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 457 "Posted Approval Comment Line"](../table/457.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 46 "Item Register"](../table/46.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 5093 "Opportunity Entry"](../table/5093.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 5223 "Detailed Employee Ledger Entry"](../table/5223.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 5601 "FA Ledger Entry"](../table/5601.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 5625 "Maintenance Ledger Entry"](../table/5625.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 5629 "Ins. Coverage Ledger Entry"](../table/5629.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 5636 "Insurance Register"](../table/5636.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 5637 "FA G/L Posting Buffer"](../table/5637.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 5802 "Value Entry"](../table/5802.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 5832 "Capacity Ledger Entry"](../table/5832.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 5907 "Service Ledger Entry"](../table/5907.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 5908 "Warranty Ledger Entry"](../table/5908.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 5914 "Loaner Entry"](../table/5914.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 5934 "Service Register"](../table/5934.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 5970 "Filed Service Contract Header"](../table/5970.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Table 6227 "Sustainability Value Entry"](../table/6227.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)
- and 12 more: data/code/graph/29/calls.json

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC25-27

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