---
id: object/codeunit/413
type: object
title: Codeunit 413 "AnalysisViewEntryToGLEntries"
summary: Codeunit 413 "AnalysisViewEntryToGLEntries" in Base Application (Microsoft.Finance.Analysis). 4 public procedures, 4 events. Present since at least BC23, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  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: db29218855c8272473c23136f7adce652e4ba484f296d7d75e0706b40af03f13
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Finance/Analysis/AnalysisViewEntryToGLEntries.Codeunit.al
    title: src/Layers/W1/BaseApp/Finance/Analysis/AnalysisViewEntryToGLEntries.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: 413
name: AnalysisViewEntryToGLEntries
namespace: Microsoft.Finance.Analysis
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 9
  events: 4
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 4
  implements: 0
---

# Codeunit 413 "AnalysisViewEntryToGLEntries"

> Codeunit 413 "AnalysisViewEntryToGLEntries" in Base Application (Microsoft.Finance.Analysis). 4 public procedures, 4 events. Present since at least BC23, still in BC30.

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

## Events published

- `OnGetGLEntriesOnAfterGLEntrySetFilters(var GLEntry: Record "G/L Entry"; var AnalysisView: Record "Analysis View"; var AnalysisViewEntry: Record "Analysis View Entry")` (integration): Integration event raised after setting filters on G/L Entry record during drill-down process. Enables custom filtering logic for G/L entries retrieved from analysis view entries.
- `OnAfterGetGLEntryIfDateCompressionNone(var AnalysisViewEntry: Record "Analysis View Entry"; var TempGLEntry: Record "G/L Entry" temporary)` (integration): Integration event raised after retrieving G/L entry when date compression is disabled. Allows custom processing of G/L entries in non-compressed analysis view scenarios.
- `OnAfterGetGLEntries(var AnalysisViewEntry: Record "Analysis View Entry"; var TempGLEntry: Record "G/L Entry" temporary)` (integration): Integration event raised after completing G/L entry retrieval process. Enables final processing or validation of retrieved G/L entries from analysis view drill-down.
- `OnGetGLEntriesOnBeforeCopyGLEntries(var AnalysisViewEntry: Record "Analysis View Entry"; var IsHandled: Boolean)` (integration): Integration event raised before copying G/L entries during analysis view drill-down process. Allows custom handling or skipping of standard G/L entry retrieval logic.

## Procedures

- `GetGLEntries(var AnalysisViewEntry: Record "Analysis View Entry"; var TempGLEntry: Record "G/L Entry")`: Retrieves G/L entries that correspond to an analysis view entry for drill-down functionality. Applies appropriate filters based on analysis view configuration and dimension settings.
- `GetCFLedgEntries(var AnalysisViewEntry: Record "Analysis View Entry"; var CFForecastEntry: Record "Cash Flow Forecast Entry")`: Retrieves cash flow forecast entries that correspond to an analysis view entry for drill-down functionality. Applies appropriate filters based on analysis view configuration and cash flow dimension settings.
- `DimEntryOK(DimSetID: Integer; Dim: Code[20]; DimValue: Code[20]): Boolean`: Validates whether a dimension set entry matches expected dimension value for analysis view filtering. Checks if the dimension value in a dimension set matches the required value for analysis view drill-down.
- `GetGlobalDimValue(GlobalDim: Code[20]; var AnalysisViewEntry: Record "Analysis View Entry"; var GlobalDimValue: Code[20]): Boolean`: Retrieves global dimension value from analysis view entry for specified dimension code. Maps analysis view dimension codes to corresponding dimension values for filtering purposes.

Plus 1 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 410 "Update Analysis View"](../codeunit/410.md) (2 calls: `GetCFLedgEntries → DimSetIDInFilter`, `GetGLEntries → DimSetIDInFilter`)

## Called by

- [Codeunit 2621 "Stat. Acc. Analysis View Mgt."](../codeunit/2621.md) (2 calls: `GetStatisticalLedgerEntry → DimEntryOK`, `GetStatisticalLedgerEntry → GetGlobalDimValue`)
- [Table 365 "Analysis View Entry"](../table/365.md) (2 calls: `DrillDown → GetCFLedgEntries`, `DrillDown → GetGLEntries`)
- [Report 28 "Dimensions - Detail"](../report/28.md) (1 call: `PrintDetail → GetGLEntries`)
- [Report 852 "Cash Flow Dimensions - Detail"](../report/852.md) (1 call: `PrintDetail → GetCFLedgEntries`)

## Across versions

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