---
id: object/codeunit/424
type: object
title: Codeunit 424 "Export Analysis View"
summary: Codeunit 424 "Export Analysis View" in Base Application (Microsoft.Finance.Analysis). 3 public procedures, 6 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: 52841c136fbe802122e8348d7f3cfeff18ea64cdaab14ac6b7d4cfdf36a2f291
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Finance/Analysis/ExportAnalysisView.Codeunit.al
    title: src/Layers/W1/BaseApp/Finance/Analysis/ExportAnalysisView.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/es
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 424
name: Export Analysis View
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:
  - es
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 35
  events: 6
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 0
  implements: 0
---

# Codeunit 424 "Export Analysis View"

> Codeunit 424 "Export Analysis View" in Base Application (Microsoft.Finance.Analysis). 3 public procedures, 6 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/ExportAnalysisView.Codeunit.al) · facts from BC29

## Events published

- `OnAfterExportData(var varTempExcelBuffer: Record "Excel Buffer" temporary; var AnalysisViewEntry: Record "Analysis View Entry")` (integration): Integration event raised after completing analysis view data export to Excel buffer. Enables custom post-processing of Excel data before file generation and download.
- `OnCreateAnalysisViewEntryPartOnBeforeStartNewRow(var TempExcelBuffer: Record "Excel Buffer" temporary; var AnalysisViewEntry: Record "Analysis View Entry"; AnalysisByDimParameters: Record "Analysis by Dim. Parameters")` (integration): Integration event raised before starting a new row when creating analysis view entry data part. Enables custom row formatting and data manipulation during Excel export generation.
- `OnCreateRowWithColumnsCaptionsOnBeforeStartNewRow(var TempExcelBuffer: Record "Excel Buffer" temporary; var AnalysisViewEntry: Record "Analysis View Entry")` (integration): Integration event raised before starting a new row when creating column captions. Enables custom header formatting and caption manipulation during Excel export generation.
- `OnExportDataOnAfterCloseBook(var TempExcelBuffer: Record "Excel Buffer" temporary; var AnalysisViewEntry: Record "Analysis View Entry"; AnalysisByDimParameters: Record "Analysis by Dim. Parameters")` (integration): Integration event raised after closing the Excel workbook during data export. Enables final workbook customization and post-processing before file completion.
- `OnBeforeCheckCombination(GLAccountSource: Boolean; Show: Integer; AmountField: Integer; var IsHandled: Boolean)` (integration): Integration event raised before checking combination validity for export settings. Enables custom validation logic for analysis view export parameter combinations.
- `OnBeforeCreateAnalysisViewEntryPart(var AnalysisViewEntry: Record "Analysis View Entry"; AnalysisView: Record "Analysis View"; var StartDate: Date; var EndDate: Date; AnalysisByDimParameters: Record "Analysis by Dim. Parameters"; var IsHandled: Boolean)` (integration): Integration event raised before creating analysis view entry part during export generation. Enables custom date filtering and entry selection logic for analysis view export processing.

## Procedures

- `ExportData(var AnalysisViewEntry: Record "Analysis View Entry"; AnalysisByDimParameters: Record "Analysis by Dim. Parameters")`: Exports analysis view entry data to Excel format with dimensional breakdown and hierarchical structure. Creates comprehensive Excel report with configurable dimensions and account groupings.
- `GetServerFileName(): Text`: Retrieves the server file name for the exported analysis view file. Returns the full server path and filename of the generated Excel export file.
- `SetSkipDownload()`: Configures the export process to skip automatic file download after generation. Sets the process to generate the Excel file without triggering browser download dialog.

Plus 26 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 419 "File Management"](../codeunit/419.md) (1 call: `ExportData → ServerTempFileName`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: none

## Countries that replace it

[ES](../../localizations/es.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: "Export Analysis View")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
